RESOLVED FIXED Bug 37783
new-run-webkit-tests: add a way to print out or retry the last set of tests that failed
https://bugs.webkit.org/show_bug.cgi?id=37783
Summary new-run-webkit-tests: add a way to print out or retry the last set of tests t...
Dirk Pranke
Reported 2010-04-18 16:46:41 PDT
I frequently want to re-run new-run-webkit-tests and just re-test the set of tests that failed. It would be nice if there was a way to print the last tests out easily or read them into new-run-webkit-tests. The data is in the unexpected_results.json file, so we just have to process it.
Attachments
Patch (2.66 KB, patch)
2010-04-18 17:17 PDT, Dirk Pranke
no flags
Patch (2.87 KB, patch)
2010-04-19 14:56 PDT, Dirk Pranke
no flags
Dirk Pranke
Comment 1 2010-04-18 17:17:08 PDT
Eric Seidel (no email)
Comment 2 2010-04-19 00:08:45 PDT
Comment on attachment 53646 [details] Patch Looks useful.
Ojan Vafai
Comment 3 2010-04-19 08:14:06 PDT
Comment on attachment 53646 [details] Patch > + optparse.make_option("--print-last-results", action="store_true", > + default=False, help="print the tests in the last run that " > + "had unexpected results."), Do we really need an option for this? Lets just always do this. If python had a way of doing "hidden" commands the way the webkit-patch does for commands, I'd be OK with adding all these options. But having them all visible to users of the script by default makes the script harder to use. > + optparse.make_option("--retry-last-results", action="store_true", > + default=False, help="re-try the tests in the last run that " > + "had unexpected results."), Nit: last-results isn't clear without reading the help text or the code. How about --retry-unexpected-failures?
Dirk Pranke
Comment 4 2010-04-19 10:41:31 PDT
(In reply to comment #3) > (From update of attachment 53646 [details]) > > + optparse.make_option("--print-last-results", action="store_true", > > + default=False, help="print the tests in the last run that " > > + "had unexpected results."), > > Do we really need an option for this? Lets just always do this. If python had a > way of doing "hidden" commands the way the webkit-patch does for commands, I'd > be OK with adding all these options. But having them all visible to users of > the script by default makes the script harder to use. What do you mean by "always do this"? The patch prints the list and exits if that flag is passed in. > > + optparse.make_option("--retry-last-results", action="store_true", > > + default=False, help="re-try the tests in the last run that " > > + "had unexpected results."), > > Nit: last-results isn't clear without reading the help text or the code. How > about --retry-unexpected-failures? Of course, we retry unexpected passes as well. --retry-unexpected-results? I could also live with -failures, as that is the main intent. -- Dirk
Dirk Pranke
Comment 5 2010-04-19 14:56:05 PDT
Dirk Pranke
Comment 6 2010-04-19 14:57:08 PDT
Note You need to log in before you can comment on or make changes to this bug.