mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1262158 - Fail early if test path does not exist; r=automatedtester
MozReview-Commit-ID: Lfo5zf8FIaf --HG-- extra : rebase_source : e720b6725826c2cf94a7c3c8ac53d36c3f59609b
This commit is contained in:
parent
21edbc606a
commit
3bc93889a9
@ -471,6 +471,11 @@ class BaseMarionetteArguments(ArgumentParser):
|
||||
print 'must specify one or more test files, manifests, or directories'
|
||||
sys.exit(1)
|
||||
|
||||
for path in args.tests:
|
||||
if not os.path.exists(path):
|
||||
print '{0} does not exist'.format(path)
|
||||
sys.exit(1)
|
||||
|
||||
if not args.emulator and not args.address and not args.binary:
|
||||
print 'must specify --binary, --emulator or --address'
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user