From: Junio C Hamano Date: Thu, 29 Sep 2016 21:00:07 GMT Subject: [PATCH v2 2/9] t1300: always compare expect to actual Message-ID: <20160929210014.3874-3-gitster@pobox.com> In-Reply-To: <20160929210014.3874-1-gitster@pobox.com> The two arguments to the test_cmp helper should always have the expected output first and then the actual one, so that an unmet expectation would appear as -what we wanted to see +what we actually saw in its output. Signed-off-by: Junio C Hamano --- t/t1300-repo-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 0543b62227bf..1b3f6f4854f9 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -936,7 +936,7 @@ EOF test_expect_success 'value continued on next line' ' git config --list > result && - test_cmp result expect + test_cmp expect result ' cat > .git/config <<\EOF -- 2.10.0-589-g5adf4e1