From 5d77298d084f01a854c8aecc1709acf53d956ef8 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Fri, 21 Dec 2012 11:10:10 -0800 Subject: tests: move test_cmp_rev to test-lib-functions A function for checking that two given parameters refer to the same revision was defined in several places, so move the definition to test-lib-functions.sh instead. Signed-off-by: Martin von Zweigbergk Signed-off-by: Junio C Hamano --- t/t6030-bisect-porcelain.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 't/t6030-bisect-porcelain.sh') diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index 72e28ee535..3e0e15fb3e 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -676,9 +676,7 @@ test_expect_success 'bisect fails if tree is broken on trial commit' ' check_same() { echo "Checking $1 is the same as $2" && - git rev-parse "$1" > expected.same && - git rev-parse "$2" > expected.actual && - test_cmp expected.same expected.actual + test_cmp_rev "$1" "$2" } test_expect_success 'bisect: --no-checkout - start commit bad' ' -- cgit v1.2.3