diff options
-rwxr-xr-x | t/t6001-rev-list-merge-order.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t6001-rev-list-merge-order.sh b/t/t6001-rev-list-merge-order.sh index 8ac77d997b..a693c17dfa 100755 --- a/t/t6001-rev-list-merge-order.sh +++ b/t/t6001-rev-list-merge-order.sh @@ -85,13 +85,12 @@ check_output() { _name=$1 shift 1 - if "$@" | entag > $_name.actual + if eval "$*" | entag > $_name.actual then diff $_name.expected $_name.actual else return 1; fi - } # Turn a reasonable test description into a reasonable test name. @@ -114,7 +113,7 @@ test_output_expect_success() [ $# -eq 2 ] || error "usage: test_output_expect_success description test <<EOF ... EOF" _name=$(echo $_description | name_from_description) cat > $_name.expected - test_expect_success "$_description" "check_output $_name $_test" + test_expect_success "$_description" "check_output $_name \"$_test\"" } # --- end of stuff to move --- |