Skip to content

Commit

Permalink
Fix unit test runner to exit with error when no devices are attached.
Browse files Browse the repository at this point in the history
BUG=238474

Review URL: https://chromiumcodereview.appspot.com/14960003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198914 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
shashishekhar@chromium.org committed May 8, 2013
1 parent 2ae13ed commit 5be833c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/android/pylib/gtest/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ def _RunATestSuite(options, suite_name):
attached_devices = android_commands.GetAttachedDevices()

if not attached_devices:
logging.critical('A device must be attached and online.')
return 1
raise Exception('A device must be attached and online.')

# Reset the test port allocation. It's important to do it before starting
# to dispatch any tests.
Expand Down

0 comments on commit 5be833c

Please sign in to comment.