# HG changeset patch # User Gregory Szorc # Date 1397969595 25200 # Node ID 3cd2d2de4060116ddf020be5cdb17cff4a3a6ff6 # Parent 79930515604f380b0dc5a832c3cdcd2f297e2afb run-tests: move computation of test paths into Test.__init__ diff -r 79930515604f -r 3cd2d2de4060 tests/run-tests.py --- a/tests/run-tests.py Sat Apr 19 21:50:23 2014 -0700 +++ b/tests/run-tests.py Sat Apr 19 21:53:15 2014 -0700 @@ -551,7 +551,10 @@ runs cannot be run concurrently. """ - def __init__(self, test, path, options, count, refpath, errpath): + def __init__(self, testdir, test, options, count, refpath): + path = os.path.join(testdir, test) + errpath = os.path.join(testdir, '%s.err' % test) + self._test = test self._path = path self._options = options @@ -1134,8 +1137,6 @@ log("\nSkipping %s: %s" % (testpath, msg)) return 's', test, msg - testpath = os.path.join(TESTDIR, test) - err = os.path.join(TESTDIR, test + ".err") lctest = test.lower() for ext, cls, out in testtypes: @@ -1146,7 +1147,7 @@ else: return skip("unknown test type") - t = runner(test, testpath, options, count, ref, err) + t = runner(TESTDIR, test, options, count, ref) result = t.run() t.cleanup()