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

Issue 1716863002: Raise exception when all devices fail to list tests. (Closed)

Created:
4 years, 10 months ago by BigBossZhiling
Modified:
4 years, 9 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Raise exception when all devices fail to list tests. When devices fail to list tests, instead of treating the result of list tests, which is None as an empty list, we should raise an exception. BUG=585585 Committed: https://crrev.com/84802d80ccf691838d7e3d8fcbb3a87ae5e6eca9 Cr-Commit-Position: refs/heads/master@{#379925}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed presubmit warnings. #

Patch Set 3 : simplify and changed exception to be thrown #

Total comments: 5

Patch Set 4 : fixes #

Total comments: 2

Patch Set 5 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M build/android/pylib/local/device/local_device_gtest_run.py View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
BigBossZhiling
4 years, 10 months ago (2016-02-19 19:01:17 UTC) #4
mikecase (-- gone --)
https://codereview.chromium.org/1716863002/diff/1/build/android/pylib/local/device/local_device_gtest_run.py File build/android/pylib/local/device/local_device_gtest_run.py (right): https://codereview.chromium.org/1716863002/diff/1/build/android/pylib/local/device/local_device_gtest_run.py#newcode322 build/android/pylib/local/device/local_device_gtest_run.py:322: if reduce(check_both_devices_failed, map(check_one_device_failed, test_lists)): You could just do "if ...
4 years, 10 months ago (2016-02-19 19:03:42 UTC) #5
BigBossZhiling
https://codereview.chromium.org/1716863002/diff/1/build/android/pylib/local/device/local_device_gtest_run.py File build/android/pylib/local/device/local_device_gtest_run.py (right): https://codereview.chromium.org/1716863002/diff/1/build/android/pylib/local/device/local_device_gtest_run.py#newcode322 build/android/pylib/local/device/local_device_gtest_run.py:322: if reduce(check_both_devices_failed, map(check_one_device_failed, test_lists)): On 2016/02/19 19:03:42, mikecase wrote: ...
4 years, 10 months ago (2016-02-19 22:13:47 UTC) #6
mikecase (-- gone --)
Gave you some nits. Should be good after that. Thanks for adding this :D https://codereview.chromium.org/1716863002/diff/40001/build/android/pylib/local/device/local_device_gtest_run.py ...
4 years, 10 months ago (2016-02-19 23:41:54 UTC) #7
BigBossZhiling
https://codereview.chromium.org/1716863002/diff/40001/build/android/pylib/local/device/local_device_gtest_run.py File build/android/pylib/local/device/local_device_gtest_run.py (right): https://codereview.chromium.org/1716863002/diff/40001/build/android/pylib/local/device/local_device_gtest_run.py#newcode319 build/android/pylib/local/device/local_device_gtest_run.py:319: # If all devices failed to list_tests, raise an ...
4 years, 10 months ago (2016-02-24 22:51:14 UTC) #8
mikecase (-- gone --)
1 last comment. Just be sure to test this locally before you commit. https://codereview.chromium.org/1716863002/diff/60001/build/android/pylib/local/device/local_device_gtest_run.py File ...
4 years, 10 months ago (2016-02-25 16:43:44 UTC) #9
BigBossZhiling
https://codereview.chromium.org/1716863002/diff/60001/build/android/pylib/local/device/local_device_gtest_run.py File build/android/pylib/local/device/local_device_gtest_run.py (right): https://codereview.chromium.org/1716863002/diff/60001/build/android/pylib/local/device/local_device_gtest_run.py#newcode319 build/android/pylib/local/device/local_device_gtest_run.py:319: # If all devices failed to s/list_tests/list tests, raise ...
4 years, 10 months ago (2016-02-25 18:10:14 UTC) #10
mikecase (-- gone --)
lgtm
4 years, 10 months ago (2016-02-25 18:11:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1716863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1716863002/80001
4 years, 9 months ago (2016-03-08 19:13:42 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-08 22:01:03 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 22:02:22 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/84802d80ccf691838d7e3d8fcbb3a87ae5e6eca9
Cr-Commit-Position: refs/heads/master@{#379925}

Powered by Google App Engine
This is Rietveld 408576698