| Index: build/android/pylib/android_commands.py
|
| diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
|
| index 1d80642d6546e9c47ef9c6c5ed668a73bebccc7d..2fa9d5e0f70975e9d338410ab420eedf61769f0f 100644
|
| --- a/build/android/pylib/android_commands.py
|
| +++ b/build/android/pylib/android_commands.py
|
| @@ -1272,6 +1272,9 @@ class AndroidCommands(object):
|
| # convention and doesn't terminate with INSTRUMENTATION_CODE.
|
| # Just assume the first result is valid.
|
| (test_results, _) = am_instrument_parser.ParseAmInstrumentOutput(output)
|
| + if not test_results:
|
| + raise errors.InstrumentationError(
|
| + 'no test results... device setup correctly?')
|
| return test_results[0]
|
|
|
|
|
|
|