Bug 924639 - Make jit_test.py print test names relative to the tests directory, for consistency. r=terrence

This commit is contained in:
Dan Gohman 2013-10-09 06:41:44 -07:00
parent 77a1580baf
commit 80fba47123

View File

@ -77,8 +77,8 @@ class Test:
# Path relative to the top mozilla/ directory.
self.relpath_top = os.path.relpath(path, TOP_SRC_DIR)
# Path relative to mozilla/js/src/.
self.relpath_js = os.path.relpath(path, JS_DIR)
# Path relative to mozilla/js/src/jit-test/tests/.
self.relpath_tests = os.path.relpath(path, TEST_DIR)
self.jitflags = [] # jit flags to enable
self.slow = False # True means the test is slow-running
@ -558,14 +558,14 @@ def process_test_results(results, num_tests, options):
sys.stdout.write(res.err)
ok = check_output(res.out, res.err, res.rc, res.test)
doing = 'after %s' % res.test.relpath_js
doing = 'after %s' % res.test.relpath_tests
if not ok:
failures.append(res)
if res.timed_out:
pb.message("TIMEOUT - %s" % res.test.relpath_js)
pb.message("TIMEOUT - %s" % res.test.relpath_tests)
timeouts += 1
else:
pb.message("FAIL - %s" % res.test.relpath_js)
pb.message("FAIL - %s" % res.test.relpath_tests)
if options.tinderbox:
print_tinderbox(ok, res)