зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1122909 - Show clear error message in jstests.py when shell could not be found. r=terrence
This commit is contained in:
Родитель
3c69f7e33d
Коммит
fd002f1d94
|
@ -8,7 +8,7 @@ See the adjacent README.txt for more details.
|
|||
from __future__ import print_function
|
||||
|
||||
import os, sys, textwrap
|
||||
from os.path import abspath, dirname, realpath
|
||||
from os.path import abspath, dirname, isfile, realpath
|
||||
from copy import copy
|
||||
from subprocess import list2cmdline, call
|
||||
|
||||
|
@ -279,6 +279,9 @@ def load_tests(options, requested_paths, excluded_paths):
|
|||
|
||||
def main():
|
||||
options, requested_paths, excluded_paths = parse_args()
|
||||
if options.js_shell is not None and not isfile(options.js_shell):
|
||||
print('Could not find shell at given path.')
|
||||
return 1
|
||||
skip_list, test_list = load_tests(options, requested_paths, excluded_paths)
|
||||
|
||||
if not test_list:
|
||||
|
|
Загрузка…
Ссылка в новой задаче