File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -447,12 +447,10 @@ test_expect_success 'cvs update (-p)' '
447
447
git push gitcvs.git >/dev/null &&
448
448
cd cvswork &&
449
449
GIT_CONFIG="$git_config" cvs update &&
450
- rm -f failures &&
451
450
for i in merge no-lf empty really-empty; do
452
- GIT_CONFIG="$git_config" cvs update -p "$i" >$i.out
453
- test_cmp $i.out ../$i >>failures 2>&1
454
- done &&
455
- test -z "$(cat failures)"
451
+ GIT_CONFIG="$git_config" cvs update -p "$i" >$i.out &&
452
+ test_cmp $i.out ../$i || return 1
453
+ done
456
454
'
457
455
458
456
cd " $WORKDIR "
Original file line number Diff line number Diff line change @@ -455,20 +455,20 @@ test_expect_success 'cvs up -r $(git rev-parse v1)' '
455
455
'
456
456
457
457
test_expect_success ' cvs diff -r v1 -u' '
458
- ( cd cvswork && cvs -f diff -r v1 -u ) > cvsDiff.out 2>cvs.log &&
458
+ ( cd cvswork && cvs -f diff -r v1 -u >../ cvsDiff.out 2>../ cvs.log ) &&
459
459
test_must_be_empty cvsDiff.out &&
460
460
test_must_be_empty cvs.log
461
461
'
462
462
463
463
test_expect_success ' cvs diff -N -r v2 -u' '
464
- ( cd cvswork && ! cvs -f diff -N -r v2 -u ) > cvsDiff.out 2>cvs.log &&
464
+ ( cd cvswork && ! cvs -f diff -N -r v2 -u >../ cvsDiff.out 2>../ cvs.log ) &&
465
465
test_must_be_empty cvs.log &&
466
466
test -s cvsDiff.out &&
467
467
check_diff cvsDiff.out v2 v1 >check_diff.out 2>&1
468
468
'
469
469
470
470
test_expect_success ' cvs diff -N -r v2 -r v1.2' '
471
- ( cd cvswork && ! cvs -f diff -N -r v2 -r v1.2 -u ) > cvsDiff.out 2>cvs.log &&
471
+ ( cd cvswork && ! cvs -f diff -N -r v2 -r v1.2 -u >../ cvsDiff.out 2>../ cvs.log ) &&
472
472
test_must_be_empty cvs.log &&
473
473
test -s cvsDiff.out &&
474
474
check_diff cvsDiff.out v2 v1.2 >check_diff.out 2>&1
@@ -487,7 +487,7 @@ test_expect_success 'apply early [cvswork3] diff to b3' '
487
487
'
488
488
489
489
test_expect_success ' check [cvswork3] diff' '
490
- ( cd cvswork3 && ! cvs -f diff -N -u ) >"$WORKDIR/cvsDiff.out" 2>cvs.log &&
490
+ ( cd cvswork3 && ! cvs -f diff -N -u >"$WORKDIR/cvsDiff.out" 2>../ cvs.log ) &&
491
491
test_must_be_empty cvs.log &&
492
492
test -s cvsDiff.out &&
493
493
test $(grep Index: cvsDiff.out | wc -l) = 3 &&
You can’t perform that action at this time.
0 commit comments