Bug 518056: better error message for nonexistent js shell argument in trace-tests.py, r=graydon

This commit is contained in:
David Mandelin 2009-09-22 12:15:06 -07:00
parent 611fbb67d5
commit 72c8946af6

View File

@ -316,4 +316,11 @@ if __name__ == '__main__':
call(cmd) call(cmd)
sys.exit() sys.exit()
run_tests(test_list, test_dir, lib_dir) try:
run_tests(test_list, test_dir, lib_dir)
except OSError:
if not os.path.exists(JS):
print >> sys.stderr, "JS shell argument: file does not exist: '%s'"%JS
sys.exit(1)
else:
raise