diff options
author | Torsten Bögershausen <tboegi@web.de> | 2012-12-08 22:34:15 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-09 01:37:51 -0800 |
commit | 341bf11245463a59dc20060f3157386b6d4aa7e4 (patch) | |
tree | 3ad0654d59e8a5df8833216aeb2f1bfb01f3263d /t/t9402-git-cvsserver-refs.sh | |
parent | 173581412819d5be9035e641bc895d5d4a468d6a (diff) | |
download | git-341bf11245463a59dc20060f3157386b6d4aa7e4.tar.gz |
t9402: Dont use test_must_fail cvs
Replace "test_must_fail cvs" with "! cvs"
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9402-git-cvsserver-refs.sh')
-rwxr-xr-x | t/t9402-git-cvsserver-refs.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/t/t9402-git-cvsserver-refs.sh b/t/t9402-git-cvsserver-refs.sh index f1bea0fed0..21000ec771 100755 --- a/t/t9402-git-cvsserver-refs.sh +++ b/t/t9402-git-cvsserver-refs.sh @@ -156,7 +156,7 @@ test_expect_success 'edit cvswork3 and save diff' ' rm t2 && cvs -f add adir/afile5 && cvs -f rm t2 && - test_must_fail cvs -f diff -N -u >"$WORKDIR/cvswork3edit.diff" + ! cvs -f diff -N -u >"$WORKDIR/cvswork3edit.diff" ) ' @@ -281,7 +281,7 @@ test_expect_success 'cvs co b2 [into cvswork2]' ' test_expect_success 'root dir edit [cvswork2]' ' ( cd cvswork2 && echo "Line 2" >> textfile.c && - test_must_fail cvs -f diff -u >"$WORKDIR/cvsEdit1.diff" && + ! cvs -f diff -u >"$WORKDIR/cvsEdit1.diff" && cvs -f commit -m "edit textfile.c" textfile.c ) >cvsEdit1.log 2>&1 ' @@ -290,7 +290,7 @@ test_expect_success 'root dir rm file [cvswork2]' ' ( cd cvswork2 && cvs -f rm -f t2 && cvs -f diff -u > ../cvsEdit2-empty.diff && - test_must_fail cvs -f diff -N -u >"$WORKDIR/cvsEdit2-N.diff" && + ! cvs -f diff -N -u >"$WORKDIR/cvsEdit2-N.diff" && cvs -f commit -m "rm t2" ) > cvsEdit2.log 2>&1 ' @@ -304,11 +304,11 @@ test_expect_success 'subdir edit/add/rm files [cvswork2' ' cvs -f rm bdir/b2file && echo "4th file" > bdir/b4file && cvs -f add bdir/b4file && - test_must_fail cvs -f diff -N -u >"$WORKDIR/cvsEdit3.diff" && + ! cvs -f diff -N -u >"$WORKDIR/cvsEdit3.diff" && git fetch gitcvs.git b2:b2 && ( cd .. && - test_must_fail cvs -f diff -u -N -r v1.2 >"$WORKDIR/cvsEdit3-v1.2.diff" && - test_must_fail cvs -f diff -u -N -r v1.2 -r v1 >"$WORKDIR/cvsEdit3-v1.2-v1.diff" + ! cvs -f diff -u -N -r v1.2 >"$WORKDIR/cvsEdit3-v1.2.diff" && + ! cvs -f diff -u -N -r v1.2 -r v1 >"$WORKDIR/cvsEdit3-v1.2-v1.diff" ) && cvs -f commit -m "various add/rm/edit" ) >cvs.log 2>&1 @@ -468,7 +468,7 @@ test_expect_success 'cvs diff -r v1 -u' ' test_expect_success 'cvs diff -N -r v2 -u' ' ( cd cvswork && - test_must_fail cvs -f diff -N -r v2 -u ) >cvsDiff.out 2>cvs.log && + ! cvs -f diff -N -r v2 -u ) >cvsDiff.out 2>cvs.log && test ! -s cvs.log && test -s cvsDiff.out && check_diff cvsDiff.out v2 v1 > check_diff.out 2>&1 @@ -476,7 +476,7 @@ test_expect_success 'cvs diff -N -r v2 -u' ' test_expect_success 'cvs diff -N -r v2 -r v1.2' ' ( cd cvswork && - test_must_fail cvs -f diff -N -r v2 -r v1.2 -u ) >cvsDiff.out 2>cvs.log && + ! cvs -f diff -N -r v2 -r v1.2 -u ) >cvsDiff.out 2>cvs.log && test ! -s cvs.log && test -s cvsDiff.out && check_diff cvsDiff.out v2 v1.2 > check_diff.out 2>&1 @@ -494,7 +494,7 @@ test_expect_success 'apply early [cvswork3] diff to b3' ' test_expect_success 'check [cvswork3] diff' ' ( cd cvswork3 && - test_must_fail cvs -f diff -N -u ) >"$WORKDIR/cvsDiff.out" 2>cvs.log && + ! cvs -f diff -N -u ) >"$WORKDIR/cvsDiff.out" 2>cvs.log && test ! -s cvs.log && test -s cvsDiff.out && test $(grep Index: cvsDiff.out | wc -l) = 3 && @@ -517,7 +517,7 @@ test_expect_success 'merge early [cvswork3] b3 with b1' ' test_expect_success 'cvs up dirty [cvswork3]' ' ( cd cvswork3 && cvs -f up && - test_must_fail cvs -f diff -N -u >"$WORKDIR/cvsDiff.out" ) >cvs.log 2>&1 && + ! cvs -f diff -N -u >"$WORKDIR/cvsDiff.out" ) >cvs.log 2>&1 && test -s cvsDiff.out && test $(grep Index: cvsDiff.out | wc -l) = 2 check_start_tree cvswork3 && |