{"thread":{"id":"15468","subject":"[PATCH] t7501: always use test_cmp instead of diff","startedAt":"2008-09-09T23:37:51Z","lastAt":"2008-09-09T23:37:51Z","messageCount":1,"participants":["Miklos Vajna"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"90296","messageId":"1221003471-17064-1-git-send-email-vmiklos@frugalware.org","threadId":"15468","inReplyTo":null,"subject":"[PATCH] t7501: always use test_cmp instead of diff","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-09-09T23:37:51Z","receivedAt":"2008-09-09T23:37:51Z","isPatch":true,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"This should make the output more readable (by default using diff -u)\nwhen some tests fail.\n\nSigned-off-by: Miklos Vajna <vmiklos@frugalware.org>\n---\n\n t/t7501-commit.sh |   12 ++++++------\n 1 files changed, 6 insertions(+), 6 deletions(-)\n\ndiff --git a/t/t7501-commit.sh b/t/t7501-commit.sh\nindex 0edd9dd..6f8c038 100755\n--- a/t/t7501-commit.sh\n+++ b/t/t7501-commit.sh\n@@ -141,7 +141,7 @@ EOF\n \n test_expect_success \\\n     'validate git-rev-list output.' \\\n-    'diff current expected'\n+    'test_cmp current expected'\n \n test_expect_success 'partial commit that involves removal (1)' '\n \n@@ -151,7 +151,7 @@ test_expect_success 'partial commit that involves removal (1)' '\n \tgit commit -m \"Partial: add elif\" elif &&\n \tgit diff-tree --name-status HEAD^ HEAD >current &&\n \techo \"A\telif\" >expected &&\n-\tdiff expected current\n+\ttest_cmp expected current\n \n '\n \n@@ -160,7 +160,7 @@ test_expect_success 'partial commit that involves removal (2)' '\n \tgit commit -m \"Partial: remove file\" file &&\n \tgit diff-tree --name-status HEAD^ HEAD >current &&\n \techo \"D\tfile\" >expected &&\n-\tdiff expected current\n+\ttest_cmp expected current\n \n '\n \n@@ -171,7 +171,7 @@ test_expect_success 'partial commit that involves removal (3)' '\n \tgit commit -m \"Partial: modify elif\" elif &&\n \tgit diff-tree --name-status HEAD^ HEAD >current &&\n \techo \"M\telif\" >expected &&\n-\tdiff expected current\n+\ttest_cmp expected current\n \n '\n \n@@ -187,7 +187,7 @@ test_expect_success 'amend commit to fix author' '\n \t\texpected &&\n \tgit commit --amend --author=\"$author\" &&\n \tgit cat-file -p HEAD > current &&\n-\tdiff expected current\n+\ttest_cmp expected current\n \n '\n \n@@ -256,7 +256,7 @@ test_expect_success 'amend commit to fix author' '\n \t\texpected &&\n \tgit commit --amend --author=\"$author\" &&\n \tgit cat-file -p HEAD > current &&\n-\tdiff expected current\n+\ttest_cmp expected current\n \n '\n \n-- \n1.6.0.1\n"}]}