{"thread":{"id":"32296","subject":"[PATCH 3/8] t9402: Dont use test_must_fail cvs","startedAt":"2012-12-08T21:34:15Z","lastAt":"2012-12-08T21:34:15Z","messageCount":1,"participants":["Torsten Bögershausen"],"isPatch":true,"patchVersion":1,"patchTotal":8},"messages":[{"id":"204611","messageId":"201212082234.15716.tboegi@web.de","threadId":"32296","inReplyTo":null,"subject":"[PATCH 3/8] t9402: Dont use test_must_fail cvs","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2012-12-08T21:34:15Z","receivedAt":"2012-12-08T21:34:15Z","isPatch":true,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"Replace \"test_must_fail cvs\" with \"! cvs\"\n\nSigned-off-by: Torsten Bögershausen <tboegi@web.de>\n---\n t/t9402-git-cvsserver-refs.sh | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)\n\ndiff --git a/t/t9402-git-cvsserver-refs.sh b/t/t9402-git-cvsserver-refs.sh\nindex f1bea0f..21000ec 100755\n--- a/t/t9402-git-cvsserver-refs.sh\n+++ b/t/t9402-git-cvsserver-refs.sh\n@@ -156,7 +156,7 @@ test_expect_success 'edit cvswork3 and save diff' '\n       rm t2 &&\n       cvs -f add adir/afile5 &&\n       cvs -f rm t2 &&\n-      test_must_fail cvs -f diff -N -u >\"$WORKDIR/cvswork3edit.diff\"\n+      ! cvs -f diff -N -u >\"$WORKDIR/cvswork3edit.diff\"\n     )\n '\n \n@@ -281,7 +281,7 @@ test_expect_success 'cvs co b2 [into cvswork2]' '\n test_expect_success 'root dir edit [cvswork2]' '\n     ( cd cvswork2 &&\n       echo \"Line 2\" >> textfile.c &&\n-      test_must_fail cvs -f diff -u >\"$WORKDIR/cvsEdit1.diff\" &&\n+      ! cvs -f diff -u >\"$WORKDIR/cvsEdit1.diff\" &&\n       cvs -f commit -m \"edit textfile.c\" textfile.c\n     ) >cvsEdit1.log 2>&1\n '\n@@ -290,7 +290,7 @@ test_expect_success 'root dir rm file [cvswork2]' '\n     ( cd cvswork2 &&\n       cvs -f rm -f t2 &&\n       cvs -f diff -u > ../cvsEdit2-empty.diff &&\n-      test_must_fail cvs -f diff -N -u >\"$WORKDIR/cvsEdit2-N.diff\" &&\n+      ! cvs -f diff -N -u >\"$WORKDIR/cvsEdit2-N.diff\" &&\n       cvs -f commit -m \"rm t2\"\n     ) > cvsEdit2.log 2>&1\n '\n@@ -304,11 +304,11 @@ test_expect_success 'subdir edit/add/rm files [cvswork2' '\n       cvs -f rm bdir/b2file &&\n       echo \"4th file\" > bdir/b4file &&\n       cvs -f add bdir/b4file &&\n-      test_must_fail cvs -f diff -N -u >\"$WORKDIR/cvsEdit3.diff\" &&\n+      ! cvs -f diff -N -u >\"$WORKDIR/cvsEdit3.diff\" &&\n       git fetch gitcvs.git b2:b2 &&\n       ( cd .. &&\n-\ttest_must_fail cvs -f diff -u -N -r v1.2 >\"$WORKDIR/cvsEdit3-v1.2.diff\" &&\n-\ttest_must_fail cvs -f diff -u -N -r v1.2 -r v1 >\"$WORKDIR/cvsEdit3-v1.2-v1.diff\"\n+\t! cvs -f diff -u -N -r v1.2 >\"$WORKDIR/cvsEdit3-v1.2.diff\" &&\n+\t! cvs -f diff -u -N -r v1.2 -r v1 >\"$WORKDIR/cvsEdit3-v1.2-v1.diff\"\n       ) &&\n       cvs -f commit -m \"various add/rm/edit\"\n     ) >cvs.log 2>&1\n@@ -468,7 +468,7 @@ test_expect_success 'cvs diff -r v1 -u' '\n \n test_expect_success 'cvs diff -N -r v2 -u' '\n     ( cd cvswork &&\n-      test_must_fail cvs -f diff -N -r v2 -u ) >cvsDiff.out 2>cvs.log &&\n+      ! cvs -f diff -N -r v2 -u ) >cvsDiff.out 2>cvs.log &&\n     test ! -s cvs.log &&\n     test -s cvsDiff.out &&\n     check_diff cvsDiff.out v2 v1 > check_diff.out 2>&1\n@@ -476,7 +476,7 @@ test_expect_success 'cvs diff -N -r v2 -u' '\n \n test_expect_success 'cvs diff -N -r v2 -r v1.2' '\n     ( cd cvswork &&\n-      test_must_fail cvs -f diff -N -r v2 -r v1.2 -u ) >cvsDiff.out 2>cvs.log &&\n+      ! cvs -f diff -N -r v2 -r v1.2 -u ) >cvsDiff.out 2>cvs.log &&\n     test ! -s cvs.log &&\n     test -s cvsDiff.out &&\n     check_diff cvsDiff.out v2 v1.2 > check_diff.out 2>&1\n@@ -494,7 +494,7 @@ test_expect_success 'apply early [cvswork3] diff to b3' '\n \n test_expect_success 'check [cvswork3] diff' '\n     ( cd cvswork3 &&\n-      test_must_fail cvs -f diff -N -u ) >\"$WORKDIR/cvsDiff.out\" 2>cvs.log &&\n+      ! cvs -f diff -N -u ) >\"$WORKDIR/cvsDiff.out\" 2>cvs.log &&\n     test ! -s cvs.log &&\n     test -s cvsDiff.out &&\n     test $(grep Index: cvsDiff.out | wc -l) = 3 &&\n@@ -517,7 +517,7 @@ test_expect_success 'merge early [cvswork3] b3 with b1' '\n test_expect_success 'cvs up dirty [cvswork3]' '\n     ( cd cvswork3 &&\n       cvs -f up &&\n-      test_must_fail cvs -f diff -N -u >\"$WORKDIR/cvsDiff.out\" ) >cvs.log 2>&1 &&\n+      ! cvs -f diff -N -u >\"$WORKDIR/cvsDiff.out\" ) >cvs.log 2>&1 &&\n     test -s cvsDiff.out &&\n     test $(grep Index: cvsDiff.out | wc -l) = 2\n     check_start_tree cvswork3 &&\n-- \n1.8.0.197.g5a90748\n"}]}