зеркало из https://github.com/mozilla/gecko-dev.git
Bug 518056: better error message for nonexistent js shell argument in trace-tests.py, r=graydon
This commit is contained in:
Родитель
540bcf0f7e
Коммит
4f6cd85e1d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче