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

Issue 3150036: adds a flag to exit if a test fails (Closed)

Created:
10 years, 4 months ago by rtc
Modified:
9 years, 7 months ago
Reviewers:
petkov, kmixter1
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

adds a flag to exit if a test fails Change-Id: Ifd23ca19abaef24e30e0bbd9e751f8a0ea8cf667 Merge branch 'master' of ssh://gitrw.chromium.org:9222/crosutils into fail-on-exit Change-Id: I4e6270cc401a1450a6f2de6bc156e2dabc6d4334 BUG=none TEST=tested both success and failure cases with and without the flag

Patch Set 1 #

Patch Set 2 : Updates the flag description #

Patch Set 3 : updated descriptions again #

Total comments: 2

Patch Set 4 : exit on fail is now the default #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M generate_test_report.py View 1 2 3 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
rtc
10 years, 4 months ago (2010-08-25 20:50:29 UTC) #1
petkov
Any downside in not providing an option for this? http://codereview.chromium.org/3150036/diff/4001/5001 File generate_test_report.py (right): http://codereview.chromium.org/3150036/diff/4001/5001#newcode271 generate_test_report.py:271: ...
10 years, 4 months ago (2010-08-25 20:57:58 UTC) #2
rtc
On Wed, Aug 25, 2010 at 1:57 PM, <petkov@chromium.org> wrote: > Any downside in not ...
10 years, 4 months ago (2010-08-25 21:03:42 UTC) #3
rtc
PTAL
10 years, 4 months ago (2010-08-25 21:13:29 UTC) #4
petkov
LGTM w/ a couple of style nits. http://codereview.chromium.org/3150036/diff/10001/4002 File generate_test_report.py (right): http://codereview.chromium.org/3150036/diff/10001/4002#newcode280 generate_test_report.py:280: for v ...
10 years, 4 months ago (2010-08-25 21:21:15 UTC) #5
rtc
On Wed, Aug 25, 2010 at 2:21 PM, <petkov@chromium.org> wrote: > LGTM w/ a couple ...
10 years, 4 months ago (2010-08-25 21:25:40 UTC) #6
Nick Sanders
On Wed, Aug 25, 2010 at 2:03 PM, Ryan Cairns <rtc@chromium.org> wrote: > +Nick > ...
10 years, 4 months ago (2010-08-26 07:12:04 UTC) #7
kmixter1
10 years, 3 months ago (2010-08-27 16:38:52 UTC) #8
This is what I was thinking of:

http://codereview.chromium.org/1513033/show

Looks like the source was forked, so no worries about changing this file.

On Thu, Aug 26, 2010 at 12:11 AM, Nick Sanders <nsanders@chromium.org> wrote:
>
>
> On Wed, Aug 25, 2010 at 2:03 PM, Ryan Cairns <rtc@chromium.org> wrote:
>>
>> +Nick
>>  I'd actually prefer to make this behavior the default, but I'm not sure
>> who will break as a result. Ken mentioned that there are others (factory
>> testing) who depend on run_remote_tests behaving as it does today. Ken/Nick,
>> any opinions?
>> -Ryan
>
> The factory tests all run locally w/o network connection, so autoserv,
> run_remote_tests, etc. are not used at all.
> Thanks,
>   -Nick
>
>>
>>
>>>
>>> If you decide to keep an option, change variable name to exit_on_fail
>>> per Python style.
>>>
>>> http://codereview.chromium.org/3150036/diff/4001/5001#newcode285
>>> generate_test_report.py:285: if v["status"] != 'PASS':
>>> 'status'
>>>
>>> http://codereview.chromium.org/3150036/show
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698