| 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:
|
|
|