From f1ee28d78fbb33994ce52f72e457fbca9c0f6602 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 21 Oct 2020 22:58:33 +0200 Subject: [PATCH] t9390: expect the correct line count in `--strip-blobs-with-ids` In that test case, we expect the line count to be 5, but it is actually 6 lines that we should expect: numbers/medium.num numbers/small.num sequence/know whatever words/know Note the empty line at the top: this list is generated via `git log --format=%n`, and that `%n` stands for "newline", meaning that we _must_ expect an empty line. This expectation seems to have been broken already in the commit that added the test case: b6a35f8 (filter-repo: implement --strip-blobs-with-ids, 2019-05-30). It was hidden for such a long time by a broken &&-chain, which we will fix next. Signed-off-by: Johannes Schindelin --- t/t9390-filter-repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t9390-filter-repo.sh b/t/t9390-filter-repo.sh index 124b77e..9cfda4e 100755 --- a/t/t9390-filter-repo.sh +++ b/t/t9390-filter-repo.sh @@ -937,7 +937,7 @@ test_expect_success '--strip-blobs-with-ids' ' git filter-repo --strip-blobs-with-ids ../bad-ids --replace-text ../replace-rules && git log --format=%n --name-only | sort | uniq >../filenames && - test_line_count = 5 ../filenames && + test_line_count = 6 ../filenames && ! grep sequence/to ../filenames && ! grep words/to ../filenames && ! grep capricious ../filenames &&