fast-export: fix comparison in tests
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 28 Nov 2012 22:11:09 +0000 (23:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Nov 2012 20:18:45 +0000 (12:18 -0800)
First the expected, then the actual, otherwise the diff would be the
opposite of what we want.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9350-fast-export.sh

index 5948b65f21eb1119d724c36452b3437c7ab83093..1f598622a66f747a39f8750cce7efed72af698df 100755 (executable)
@@ -303,7 +303,7 @@ test_expect_success 'dropping tag of filtered out object' '
 (
        cd limit-by-paths &&
        git fast-export --tag-of-filtered-object=drop mytag -- there > output &&
-       test_cmp output expected
+       test_cmp expected output
 )
 '
 
@@ -320,7 +320,7 @@ test_expect_success 'rewriting tag of filtered out object' '
 (
        cd limit-by-paths &&
        git fast-export --tag-of-filtered-object=rewrite mytag -- there > output &&
-       test_cmp output expected
+       test_cmp expected output
 )
 '
 
@@ -351,7 +351,7 @@ test_expect_failure 'no exact-ref revisions included' '
        (
                cd limit-by-paths &&
                git fast-export master~2..master~1 > output &&
-               test_cmp output expected
+               test_cmp expected output
        )
 '