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

Unified Diff: build/android/pylib/instrumentation/dispatch.py

Issue 19021003: Fixes dispatch files to return exit codes in several places (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 | « build/android/pylib/gtest/dispatch.py ('k') | build/android/pylib/uiautomator/dispatch.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/instrumentation/dispatch.py
diff --git a/build/android/pylib/instrumentation/dispatch.py b/build/android/pylib/instrumentation/dispatch.py
index df245c73538bf5d74fd0df1bcb531546950d4038..e4ca2805243c6edb7f02830ae28bd808256ef6df 100644
--- a/build/android/pylib/instrumentation/dispatch.py
+++ b/build/android/pylib/instrumentation/dispatch.py
@@ -8,6 +8,7 @@ import logging
import os
from pylib import android_commands
+from pylib import constants
from pylib.base import base_test_result
from pylib.base import shard
from pylib.utils import report_results
@@ -36,8 +37,8 @@ def Dispatch(options):
tests = test_pkg._GetAllMatchingTests(
options.annotations, options.exclude_annotations, options.test_filter)
if not tests:
- logging.warning('No instrumentation tests to run with current args.')
- return base_test_result.TestRunResults()
+ logging.error('No instrumentation tests to run with current args.')
+ return (base_test_result.TestRunResults(), constants.ERROR_EXIT_CODE)
attached_devices = android_commands.GetAttachedDevices()
if not attached_devices:
« no previous file with comments | « build/android/pylib/gtest/dispatch.py ('k') | build/android/pylib/uiautomator/dispatch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698