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
Родитель 540bcf0f7e
Коммит 4f6cd85e1d
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -316,4 +316,11 @@ if __name__ == '__main__':
call(cmd)
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