From 87fb22931a6555958a3c37d2880ac9b158e99fba Mon Sep 17 00:00:00 2001 From: "frankf@chromium.org" Date: Thu, 24 Oct 2013 19:10:27 +0000 Subject: [PATCH] [Android] Improve exception message when failed to get test list. BUG=None R=craigdh@chromium.org Review URL: https://codereview.chromium.org/40523004 git-svn-id: http://src.chromium.org/svn/trunk/src/build@230783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/pylib/gtest/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/pylib/gtest/setup.py b/android/pylib/gtest/setup.py index c6fc73094..4508d7ce7 100644 --- a/android/pylib/gtest/setup.py +++ b/android/pylib/gtest/setup.py @@ -61,7 +61,7 @@ _WEBRTC_ISOLATE_FILE_PATHS = { } # Append the WebRTC tests with the full path from Chromium's src/ root. -for test,isolate_path in _WEBRTC_ISOLATE_FILE_PATHS.items(): +for test, isolate_path in _WEBRTC_ISOLATE_FILE_PATHS.items(): _ISOLATE_FILE_PATHS[test] = 'third_party/webrtc/%s' % isolate_path # Used for filtering large data deps at a finer grain than what's allowed in @@ -211,9 +211,9 @@ def _GetTestsFromDevice(runner_factory, devices): return runner_factory(device, 0).GetAllTests() except (android_commands.errors.WaitForResponseTimedOutError, android_commands.errors.DeviceUnresponsiveError), e: - logging.warning('Failed obtaining tests from %s with exception: %s', + logging.warning('Failed obtaining test list from %s with exception: %s', device, e) - raise Exception('No device available to get the list of tests.') + raise Exception('Failed to obtain test list from devices.') def _FilterTestsUsingPrefixes(all_tests, pre=False, manual=False):