Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-06-14 20:28:19 +0300
committerJunio C Hamano <gitster@pobox.com>2021-06-15 06:06:48 +0300
commit6a748c2c666e50efcb9a8b7af2fd030946575ef1 (patch)
tree5c4f70ef500242723abb08ee601c0176ceca07f3 /t/t3800-mktag.sh
parentfce3b089df2edf3a0b3825aef62d243b8a2e0146 (diff)
mktag tests: invert --no-strict test
Change the mktag --no-strict test to actually test success under --no-strict, that test was added in 06ce79152be (mktag: add a --[no-]strict option, 2021-01-06). It doesn't make sense to check that we have the same failure except when we want --no-strict, by doing that we're assuming that the behavior will be different under --no-strict, bun nothing was testing for that. We should instead assert that --strict is the same as --no-strict, except in the cases where we've declared that it's not. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3800-mktag.sh')
-rwxr-xr-xt/t3800-mktag.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t3800-mktag.sh b/t/t3800-mktag.sh
index e9008744e3..951e6d39c2 100755
--- a/t/t3800-mktag.sh
+++ b/t/t3800-mktag.sh
@@ -33,6 +33,8 @@ check_verify_failure () {
then
test_must_fail git mktag <tag.sig 2>err2 &&
test_cmp err err2
+ else
+ git mktag --no-strict <tag.sig
fi
'
}