]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5607: reorder `nongit test_must_fail`
authorDenton Liu <liu.denton@gmail.com>
Thu, 26 Mar 2020 08:27:52 +0000 (04:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 17:56:40 +0000 (10:56 -0700)
In the future, we plan on only allowing `test_must_fail` to work on a
restricted subset of commands, including `git`. Reorder the commands so
that `nongit` comes before `test_must_fail`. This way, `test_must_fail`
operates on a git command.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5607-clone-bundle.sh

index 9108ff6fbd6f52d9df6b9ec52226a71ced8fdc06..6d5a977fcba60f70d2a7329eba4c70e7ac66e925 100755 (executable)
@@ -16,7 +16,7 @@ test_expect_success 'setup' '
 
 test_expect_success '"verify" needs a worktree' '
        git bundle create tip.bundle -1 master &&
-       test_must_fail nongit git bundle verify ../tip.bundle 2>err &&
+       nongit test_must_fail git bundle verify ../tip.bundle 2>err &&
        test_i18ngrep "need a repository" err
 '