WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
29263
Add option to run-webkit-tests to repeat the tests N times
https://bugs.webkit.org/show_bug.cgi?id=29263
Summary
Add option to run-webkit-tests to repeat the tests N times
Simon Fraser (smfr)
Reported
2009-09-14 17:39:45 PDT
It would be useful in tracking down random crashers to be able to have run-webkit-tests repeat the tests N times.
Attachments
Patch
(2.23 KB, patch)
2009-09-14 17:42 PDT
,
Simon Fraser (smfr)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2009-09-14 17:42:38 PDT
Created
attachment 39580
[details]
Patch
Darin Adler
Comment 2
2009-09-14 17:48:07 PDT
Comment on
attachment 39580
[details]
Patch
> +if ($iterations) { > + my @orig_tests = @tests; > + for (my $i = 1; $i < $iterations; $i++) { > + push(@tests, @orig_tests); > + } > +}
No need for the if -- it works fine without it and just copies the array once. We normally name these things like @originalTests rather than $origTests. r=me
Darin Adler
Comment 3
2009-09-14 17:48:24 PDT
Comment on
attachment 39580
[details]
Patch @originalTests rather than @orig_tests I meant
Alexey Proskuryakov
Comment 4
2009-09-15 10:46:39 PDT
***
Bug 29220
has been marked as a duplicate of this bug. ***
Simon Fraser (smfr)
Comment 5
2009-09-15 10:50:11 PDT
http://trac.webkit.org/changeset/48378
Eric Seidel (no email)
Comment 6
2009-09-15 10:51:44 PDT
I'm confused by the flag description as I'm not certain what it will do when not passed a single test. Will it run each in order and then repeat the same ordered set, or will it run each one N times before running the next?
Simon Fraser (smfr)
Comment 7
2009-09-15 10:54:59 PDT
It will run them like: ABCABCABC rather than AAABBBCCC
Eric Seidel (no email)
Comment 8
2009-09-15 11:00:48 PDT
(In reply to
comment #7
)
> It will run them like: > ABCABCABC > rather than AAABBBCCC
Ok. I think that mode is useful, but I think it's not very useful for finding the root cause of bugs like
bug 28624
. In
bug 28624
one test is causing later tests to crash. ABCABCABC won't reveal which test is causing the later ones to crash, bug AAABBBCCC will reveal some sets of similar bugs (but not all). Either way, I think this is awesome support to have! Both types of repeated test runs are useful. I think we should probably undup
bug 29220
and have that cover adding AAABBBCCC support.
Eric Seidel (no email)
Comment 9
2009-09-15 11:01:29 PDT
(In reply to
comment #8
)
> Ok. I think that mode is useful, but I think it's not very useful for finding > the root cause of bugs like
bug 28624
. In
bug 28624
one test is causing later > tests to crash. ABCABCABC won't reveal which test is causing the later ones to > crash, bug AAABBBCCC will reveal some sets of similar bugs (but not all).
That was way more negative sounding than I meant. This support is awesome. Period. Thank you!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug