From 37c895f598d7703893abff6e03ef2875cb267f7a Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Tue, 24 Jan 2012 09:46:34 -0500 Subject: [PATCH] Bug 717684 - Robocop: better diagnostics when TEST_PATH incorrect; r=jmaher --- testing/mochitest/runtestsremote.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/mochitest/runtestsremote.py b/testing/mochitest/runtestsremote.py index 6bfae679eb5a..275fb8d06e50 100644 --- a/testing/mochitest/runtestsremote.py +++ b/testing/mochitest/runtestsremote.py @@ -401,6 +401,7 @@ def main(): dm.checkCmd(["install", "-r", os.path.join(options.robocopPath, "robocop.apk")]) appname = options.app + retVal = None for test in robocop_tests: if options.testPath and options.testPath != test['name']: continue @@ -421,6 +422,9 @@ def main(): except: pass sys.exit(1) + if retVal is None: + print "No tests run. Did you pass an invalid TEST_PATH?" + retVal = 1 else: try: retVal = mochitest.runTests(options)