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:
Maja Frydrychowicz 2016-04-14 18:18:58 -04:00
parent 21edbc606a
commit 3bc93889a9

View File

@ -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)