git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to re-use setups in multiple tests?

From
Karl Hasselström <kha@treskal.com>
Date
Oct 1, 2007, 13:40 UTC
Message-ID
<20071001134040.GA4311@diana.vm.bytemark.co.uk>
In-Reply-To
<550f9510710010546q55209759k4770cd3e78121cfc@mail.gmail.com>
On 2007-10-01 14:46:46 +0200, Tom Clarke wrote:
Show 11 quoted lines
> On 10/1/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>
> > > I suppose I could find the old pre-rebase head and work with
> > > that, but that doesn't seem that clean to me.
> >
> > You can use "git reset --hard master@{1}", and it really escapes
> > me why this should not be clean, and why you want to jump through
> > hoops instead using a much more complicated technique.
>
> That'll be because my git knowledge isn't good enough to make it
> clean. Thanks for the suggestion :-)

Another even more foolproof way would be to have the setup create a (lightweight) tag, and let each subtest reset to that tag.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Tom Clarke
Message 6 of 6 in “How to re-use setups in multiple tests?”
  1. Tom ClarkeOct 1, 2007
  2. Johannes SchindelinOct 1, 2007
  3. Tom ClarkeOct 1, 2007
  4. Johannes SchindelinOct 1, 2007
  5. Tom ClarkeOct 1, 2007
  6. Karl HasselströmOct 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.