Bug 157270 - Add fail-fast option to run-javascriptcore-tests
Summary: Add fail-fast option to run-javascriptcore-tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 157642
  Show dependency treegraph
 
Reported: 2016-05-02 11:04 PDT by Srinivasan Vijayaraghavan
Modified: 2016-05-12 15:56 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.92 KB, patch)
2016-05-02 11:06 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (2.92 KB, patch)
2016-05-02 11:27 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff
Patch (2.92 KB, patch)
2016-05-02 13:19 PDT, Srinivasan Vijayaraghavan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivasan Vijayaraghavan 2016-05-02 11:04:03 PDT
Add fail-fast option to run-javascriptcore-tests
Comment 1 Srinivasan Vijayaraghavan 2016-05-02 11:06:17 PDT
Created attachment 277912 [details]
Patch
Comment 2 Geoffrey Garen 2016-05-02 11:11:30 PDT
Comment on attachment 277912 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=277912&action=review

r=me

> Tools/Scripts/run-javascriptcore-tests:211
> +    if ($failFast) {
> +        exit exitStatus($testapiResult) if $testapiResult;

Since we have two conditions here, I think it's clearer to merge them into one if statement:

if ($testapiResult && $failFast) {
    exit...
}
Comment 3 Srinivasan Vijayaraghavan 2016-05-02 11:27:05 PDT
Created attachment 277915 [details]
Patch
Comment 4 Srinivasan Vijayaraghavan 2016-05-02 13:09:50 PDT
(In reply to comment #2)
> Comment on attachment 277912 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=277912&action=review
> 
> r=me
> 
> > Tools/Scripts/run-javascriptcore-tests:211
> > +    if ($failFast) {
> > +        exit exitStatus($testapiResult) if $testapiResult;
> 
> Since we have two conditions here, I think it's clearer to merge them into
> one if statement:
> 
> if ($testapiResult && $failFast) {
>     exit...
> }

Thanks! I've fixed this.
Comment 5 Srinivasan Vijayaraghavan 2016-05-02 13:19:01 PDT
Created attachment 277928 [details]
Patch
Comment 6 Ryan Haddad 2016-05-02 13:51:02 PDT
Comment on attachment 277928 [details]
Patch

mac-debug failures seem to be unrelated, marking cq+
Comment 7 WebKit Commit Bot 2016-05-02 14:41:33 PDT
Comment on attachment 277928 [details]
Patch

Clearing flags on attachment: 277928

Committed r200339: <http://trac.webkit.org/changeset/200339>
Comment 8 WebKit Commit Bot 2016-05-02 14:41:37 PDT
All reviewed patches have been landed.  Closing bug.