Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: tools/telemetry/telemetry/test_runner.py

Issue 205243003: [telemetry] Consolidate global hooks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/test.py ('k') | tools/telemetry/telemetry/util/exception_formatter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/test_runner.py
diff --git a/tools/telemetry/telemetry/test_runner.py b/tools/telemetry/telemetry/test_runner.py
index 801fda2428156a3abe4a01f039c48bc30940ac4a..71f3ef2b2f29530a7ffd84a78f20e82aa5fae85f 100644
--- a/tools/telemetry/telemetry/test_runner.py
+++ b/tools/telemetry/telemetry/test_runner.py
@@ -108,7 +108,7 @@ class Run(command_line.OptparseCommand):
def ProcessCommandLineArgs(cls, parser, args):
if not args.positional_args:
_PrintTestList(_Tests())
- sys.exit(1)
+ sys.exit(-1)
input_test_name = args.positional_args[0]
matching_tests = _MatchTestName(input_test_name)
@@ -116,14 +116,14 @@ class Run(command_line.OptparseCommand):
print >> sys.stderr, 'No test named "%s".' % input_test_name
print >> sys.stderr
_PrintTestList(_Tests())
- sys.exit(1)
+ sys.exit(-1)
if len(matching_tests) > 1:
print >> sys.stderr, 'Multiple tests named "%s".' % input_test_name
print >> sys.stderr, 'Did you mean one of these?'
print >> sys.stderr
_PrintTestList(matching_tests)
- sys.exit(1)
+ sys.exit(-1)
test_class = matching_tests.pop()
if issubclass(test_class, page_test.PageTest):
« no previous file with comments | « tools/telemetry/telemetry/test.py ('k') | tools/telemetry/telemetry/util/exception_formatter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698