Bug 1262158 - Fail early if test path does not exist; r?AutomatedTester
MozReview-Commit-ID: Lfo5zf8FIaf
--- a/testing/marionette/harness/marionette/runner/base.py
+++ b/testing/marionette/harness/marionette/runner/base.py
@@ -466,16 +466,21 @@ class BaseMarionetteArguments(ArgumentPa
return dict(prefs())
def verify_usage(self, args):
if not args.tests:
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)
if args.emulator and args.binary:
print 'can\'t specify both --emulator and --binary'
sys.exit(1)