]> git.notmuchmail.org Git - notmuch/commitdiff
test: Fix message when skipping test_expect_equal* tests
authorAustin Clements <amdragon@mit.edu>
Thu, 12 May 2011 13:09:06 +0000 (09:09 -0400)
committerDavid Bremner <bremner@debian.org>
Tue, 13 Sep 2011 02:35:59 +0000 (23:35 -0300)
For these types of tests, the test name is previously recorded in a
variable, not passed to the test function, so pass this variable to
test_skip.

test/test-lib.sh

index 966b2dcfd64ab9975171c39c1959fb10ae5941a2..b1b0db89602838e78c0d9577cd205842c7835bfe 100755 (executable)
@@ -449,7 +449,7 @@ test_expect_equal ()
 
        output="$1"
        expected="$2"
-       if ! test_skip "$@"
+       if ! test_skip "$test_subtest_name"
        then
                if [ "$output" = "$expected" ]; then
                        test_ok_ "$test_subtest_name"
@@ -472,7 +472,7 @@ test_expect_equal_file ()
 
        output="$1"
        expected="$2"
-       if ! test_skip "$@"
+       if ! test_skip "$test_subtest_name"
        then
                if diff -q "$expected" "$output" >/dev/null ; then
                        test_ok_ "$test_subtest_name"