validate:launcher: Let testsuite know the actual file in which they are

This commit is contained in:
Thibault Saunier 2014-08-11 13:21:09 +02:00
parent bf30bf4fd7
commit f6c62d071c

View file

@ -816,7 +816,10 @@ class _TestsLauncher(Loggable):
tester.options = options
globals()[tester.name] = tester
globals()["options"] = options
c__file__ = __file__
globals()["__file__"] = self.options.config
execfile(self.options.config, globals())
globals()["__file__"] = c__file__
for tester in self.testers:
tester.set_settings(options, args, self.reporter)