Bug 182729

Summary: run-jsc-stress-tests - skip a test if any of the run commands evals to skip
Product: WebKit Reporter: Tomas Popela <tpopela>
Component: Tools / TestsAssignee: Tomas Popela <tpopela>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, lforschler, mark.lam, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 182730    
Attachments:
Description Flags
Patch none

Description Tomas Popela 2018-02-13 07:03:35 PST
Imagine, that we have the following run command in the beginning of some stress tests:

//@ defaultNoEagerRun

now, we don't want to run this test if JIT is disabled (because the test is failing there). What we could do is:

//@ if $jitTests then defaultNoEagerRun else skip end

but I personally don't like it.. Better would be to use:

//@ skip if not $jitTests
//@ defaultNoEagerRun

but this does not work right now, because Tools/Scripts/run-jsc-stress-tests will analyse the first line, skip the run as expected, but then will start to analyse the second line and will schedule a run. We should skip further analysis if the test is skipped.
Comment 1 Tomas Popela 2018-02-13 07:18:36 PST
Created attachment 333688 [details]
Patch
Comment 2 Saam Barati 2018-02-15 08:17:14 PST
Comment on attachment 333688 [details]
Patch

r=me

The only thing slightly unintuitive here is you could have code like:
//@ runXYZ
//@ skip

And we’ll print out that we’re skipping. But it’s probably ok to not care about this
Comment 3 Tomas Popela 2018-02-15 08:49:07 PST
Comment on attachment 333688 [details]
Patch

Clearing flags on attachment: 333688

Committed r228512: <https://trac.webkit.org/changeset/228512>
Comment 4 Tomas Popela 2018-02-15 08:49:11 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2018-02-15 08:50:30 PST
<rdar://problem/37571539>