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

Unified Diff: build/android/pylib/uiautomator/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/instrumentation/dispatch.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/uiautomator/dispatch.py
diff --git a/build/android/pylib/uiautomator/dispatch.py b/build/android/pylib/uiautomator/dispatch.py
index 3837af8e4e67434b92ef3635be8c40a5fba49785..fafb2ac7ccf8360292effe1d1200f9d8a58a2645 100644
--- a/build/android/pylib/uiautomator/dispatch.py
+++ b/build/android/pylib/uiautomator/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 uiautomator tests to run with current args.')
- return base_test_result.TestRunResults()
+ logging.error('No uiautomator 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/instrumentation/dispatch.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698