Bug 717684 - Robocop: better diagnostics when TEST_PATH incorrect; r=jmaher

This commit is contained in:
Geoff Brown 2012-01-24 09:46:34 -05:00
Родитель 7a6b4e42a5
Коммит 7ee7492b26
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -401,6 +401,7 @@ def main():
dm.checkCmd(["install", "-r", os.path.join(options.robocopPath, "robocop.apk")]) dm.checkCmd(["install", "-r", os.path.join(options.robocopPath, "robocop.apk")])
appname = options.app appname = options.app
retVal = None
for test in robocop_tests: for test in robocop_tests:
if options.testPath and options.testPath != test['name']: if options.testPath and options.testPath != test['name']:
continue continue
@ -421,6 +422,9 @@ def main():
except: except:
pass pass
sys.exit(1) sys.exit(1)
if retVal is None:
print "No tests run. Did you pass an invalid TEST_PATH?"
retVal = 1
else: else:
try: try:
retVal = mochitest.runTests(options) retVal = mochitest.runTests(options)