From: Jonathan Nieder Date: Sat, 08 Jun 2013 16:56:11 GMT Subject: Re: [PATCH] tests: fix autostash Message-ID: <20130608165611.GB3109@elie.Belkin> In-Reply-To: Ramkumar Ramachandra wrote: > How else am I supposed to write them? If there is a stale state from > the previous test, there isn't too much I can do. Or should I be > cleaning up state at the beginning of each test, instead of at the > end? That's one strategy. "test_when_finished" to restore the set-up state is another. Making tests skippable unless labelled otherwise is currently an aspirational goal rather than a practical one. Hopefully some day we'll get there and the test harness can start checking it. :) It makes reorganizing test scripts, for example by reordering tests, much easier. Thanks, Jonathan