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

Issue 11613014: Assert that md5sum was built instead of failing silently. (Closed)

Created:
8 years ago by navabi
Modified:
8 years ago
Reviewers:
cmp, nyquist, cjhopman
CC:
chromium-reviews, ilevy+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Assert that md5sum was built instead of failing silently. The exit when md5sum does not exist fails silently with a short message buried in the output with no tests run. The reason is because this is an asynchronous process and the exit does not exist the script. The assert on the other hand will stop the script and print the following, making it clear the script failed and that md5sum should be built: @@@STEP_FAILURE@@@ Traceback (most recent call last): File "build/android/run_instrumentation_tests.py", line 108, in <module> sys.exit(main(sys.argv)) File "build/android/run_instrumentation_tests.py", line 101, in main ret = DispatchInstrumentationTests(options) ... results_lists = async_results.get(999999) File "/usr/lib/python2.7/multiprocessing/pool.py", line 528, in get raise self._value AssertionError: Please build md5sum. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174299

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M build/android/pylib/android_commands.py View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
navabi
8 years ago (2012-12-18 02:53:54 UTC) #1
nyquist
On 2012/12/18 02:53:54, navabi wrote: lgtm, but someone else more knowledgable about this should look. ...
8 years ago (2012-12-18 03:00:02 UTC) #2
Yaron
On 2012/12/18 03:00:02, nyquist wrote: > On 2012/12/18 02:53:54, navabi wrote: > > lgtm, but ...
8 years ago (2012-12-18 03:13:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/11613014/1
8 years ago (2012-12-20 22:51:14 UTC) #4
commit-bot: I haz the power
8 years ago (2012-12-21 01:05:56 UTC) #5
Message was sent while issue was closed.
Change committed as 174299

Powered by Google App Engine
This is Rietveld 408576698