[PATCH 01/27] bisect: Fixup test rev-list-bisect/02
- From
- Jan Kara <jack@suse.cz>
- Date
- Nov 18, 2021, 16:49 UTC
- Message-ID
- <20211118164940.8818-2-jack@suse.cz>
- In-Reply-To
- <20211118164940.8818-1-jack@suse.cz>
Test 2 from t6002-rev-list-bisect.sh expects 'c2' as the bisection point but b2 is an equivalent choice. Improve the test to accept both.
Signed-off-by: Jan Kara <jack@suse.cz> --- t/t6002-rev-list-bisect.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index b95a0212adff..48db52447fd3 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -247,8 +247,9 @@ test_expect_success 'set up fake --bisect refs' ' test_expect_success 'rev-list --bisect can default to good/bad refs' ' # the only thing between c3 and c1 is c2 git rev-parse c2 >expect && - git rev-list --bisect >actual && - test_cmp expect actual + git rev-parse b2 >>expect && + actual=$(git rev-list --bisect) && + grep &>/dev/null $actual expect ' test_expect_success 'rev-parse --bisect can default to good/bad refs' '
-- 2.26.2