]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Fix bogus tests on rev-list output.
authorJunio C Hamano <junkio@cox.net>
Tue, 27 Dec 2005 19:06:43 +0000 (11:06 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 27 Dec 2005 19:08:57 +0000 (11:08 -0800)
These tests seem to mean checking the output with expected
result, but was not doing its handrolled test helper function.

Also fix the guard to workaround wc output that have whitespace
padding, which was broken but not exposed because the test was
not testing it ;-).

Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t6001-rev-list-merge-order.sh
t/t6003-rev-list-topo-order.sh

index 8ec9ebb98abf00d5b433e11b56efbd31bbce2c40..368b8d9e02513988775881d519907fc1093b752e 100755 (executable)
@@ -110,7 +110,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2
 
 git-update-ref HEAD $(tag l5)
 
-test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
+test_output_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -d \" \"' <<EOF
 19
 EOF
 
index 98f9a1e6776c0aba2eb6b9cfeeb4b06ced596b62..d99a9ad39e45c0020d385799c28dcd3cdc4e1eda 100755 (executable)
@@ -79,7 +79,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2
 
 git-update-ref HEAD $(tag l5)
 
-test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
+test_output_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -d \" \"' <<EOF
 19
 EOF