@matheusbsbs / matheus-bagliano / commits / e9add36007
Fork 0

Fix bogus tests on rev-list output.

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>

Junio C Hamano committed Dec 27, 2005 at 11:06 UTC e9add360074068eac974c5a69f91ae78a30606e9
2 files changed +2 -2
t/t6001-rev-list-merge-order.sh
+1 -1
@@ -110,7 +110,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2
110
111 git-update-ref HEAD $(tag l5)
112
113 -test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
113 +test_output_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -d \" \"' <<EOF
114 19
115 EOF
116
t/t6003-rev-list-topo-order.sh
+1 -1
@@ -79,7 +79,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2
79
80 git-update-ref HEAD $(tag l5)
81
82 -test_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -s " "' <<EOF
82 +test_output_expect_success 'rev-list has correct number of entries' 'git-rev-list HEAD | wc -l | tr -d \" \"' <<EOF
83 19
84 EOF
85