4 ms·
The whole idea of bisection is that you have an objective behavior that has changed. If the test (which is, by definition, the tool used to measure that object
by ajross 12y ago
The whole idea of bisection is that you have an objective behavior that has changed. If the test (which is, by definition, the tool used to measure that objective behavior) is not constant across the range of changes, then you simply don't have a problem that can be solved by bisection. You're breaking rule one ("This bug" isn't a single behavior).
Obviously in practice you'd probably just use whatever the most recent version of the test is.
Really I think you're problem is that you're overspecifying rule 2. It's not about identifying a "unit test" per se, it's about identifying any specific process to detect the bug. If the tests in your tree work, great. If not, you may have to do a little development to make one that is automatable.
- taeric 12y agoI think you misunderstood. The test is brand new. As in, you find a problem that nobody has identified before and want to see how/when it was introduced. Easy way to do this is put your test external to the tree. Then, bisect as normal for git, and run your test. This is probably not uncommon for kernel tests, as you often have a test which could be "does this random laptop resume from sleep correctly?" Not really easy to automate that. And doesn't live in your tree.
- Hello71 12y ago> "does this random laptop resume from sleep correctly?" Not really easy to automate that. that's what rtcwake is for
- deleted 12y ago[deleted]
- taeric 12y agoRight, my point was more that often everything will be working great for the main developer's laptop. I did not think it was uncommon to have someone come out of the weeds with a specific laptop that doesn't work. Or worse, it works if you sleep using the "sleep" button, but not if you close the lid. So, yes, you may be able to automate it later, once you fully understand the specifics that cause it to not rewake. Possibly specific to how it went to sleep with the lid close. Until then, it is nice to be able to do ad hoc tests when necessary.