Re: [PATCH 01/37] t3030: Add a testcase for resolvable rename/add conflict with symlinks
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Sep 20, 2010, 09:34 UTC
- Message-ID
- <m3wrqgkbch.fsf@localhost.localdomain>
- In-Reply-To
- <1284971350-30590-2-git-send-email-newren@gmail.com>
Elijah Newren <newren@gmail.com> writes:
Just an addition to what Johannes Sixt wrote.
Show 15 quoted lines
> @@ -255,7 +259,16 @@ test_expect_success 'setup 8' ' > git mv a e && > git add e && > test_tick && > - git commit -m "rename a->e" > + git commit -m "rename a->e" && > + if test_have_prereq SYMLINKS > + then > + git checkout rename-ln && > + git mv a e && > + ln -s e a && > + git add a e && > + test_tick && > + git commit -m "rename a->e, symlink a->e" > + fi
Wouldn't it be better to move it to separate test_expect_success entry... if SYMLINK prerequisite would be really needed (Johannes says it isn't).
> +if test_have_prereq SYMLINKS > +then > + test_expect_success 'merge-recursive rename vs. rename/symlink' '
[...]
> +fi
It is better to use
+test_expect_success SYMLINKS 'merge-recursive rename vs. rename/symlink' '
form, see t/README about three-argument form of test_expect_success.
-- Jakub Narebski Poland ShadeHawk on #git