This is an archive of the discontinued LLVM Phabricator instance.

[dotest] Remove the -# option
AbandonedPublic

Authored by JDevlieghere on Aug 28 2019, 3:08 PM.

Details

Reviewers
jingham
Group Reviewers
Restricted Project
Summary

Rerunning the test suite is not something that dotest.py should be responsible for. This is another step towards making lit the driver and dotest the test framework.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

JDevlieghere created this revision.Aug 28 2019, 3:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2019, 3:08 PM
jingham requested changes to this revision.Aug 28 2019, 4:03 PM
jingham added a subscriber: jingham.

I use -# for running single tests multiple times. This is useful particularly if you have a test that only fails sometimes, you can do:

$ lldb-dotest -p testname.py -d -#400

then attach lldb to the Python instance set some breakpoints, if that's appropriate and continue. Then when you get the bad path, you're sitting there in the debugger with the failure in front of you. Very convenient. I don't see a way to do this with the lit infrastructure at present.

It seems to me that this is independent of the project of making dotest not be a driver, since this has nothing to do with finding tests, or farming many tests out to multiple processes, it just says "I passed you the test to run but run it 400 times in series rather than one time." So I don't think this is at cross purposes to that project.

Until there's another way to do this task that's as convenient, it would be nice not to remove this option.

This revision now requires changes to proceed.Aug 28 2019, 4:03 PM
JDevlieghere abandoned this revision.Aug 28 2019, 4:27 PM

Alright, let's keep it 👍