Browse Source

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>
maint
Junio C Hamano 19 years ago
parent
commit
e9add36007
  1. 2
      t/t6001-rev-list-merge-order.sh
  2. 2
      t/t6003-rev-list-topo-order.sh

2
t/t6001-rev-list-merge-order.sh

@ -110,7 +110,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2 @@ -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


2
t/t6003-rev-list-topo-order.sh

@ -79,7 +79,7 @@ save_tag g4 unique_commit g6 tree -p g3 -p h2 @@ -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


Loading…
Cancel
Save