@@ -28,7 +28,7 @@ file_size () {
28
28
}
29
29
30
30
filter_git () {
31
- rm -f rot13-filter .log &&
31
+ rm -f * .log &&
32
32
git " $@ "
33
33
}
34
34
@@ -342,7 +342,7 @@ test_expect_success 'diff does not reuse worktree files that need cleaning' '
342
342
'
343
343
344
344
test_expect_success PERL ' required process filter should filter data' '
345
- test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
345
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean smudge" &&
346
346
test_config_global filter.protocol.required true &&
347
347
rm -rf repo &&
348
348
mkdir repo &&
@@ -375,7 +375,7 @@ test_expect_success PERL 'required process filter should filter data' '
375
375
IN: clean testsubdir/test3 ' \' ' sq' \' ' ,\$x=.r $S3 [OK] -- OUT: $S3 . [OK]
376
376
STOP
377
377
EOF
378
- test_cmp_count expected.log rot13-filter .log &&
378
+ test_cmp_count expected.log debug .log &&
379
379
380
380
git commit -m "test commit 2" &&
381
381
rm -f test2.r "testsubdir/test3 ' \' ' sq' \' ' ,\$x=.r" &&
@@ -388,7 +388,7 @@ test_expect_success PERL 'required process filter should filter data' '
388
388
IN: smudge testsubdir/test3 ' \' ' sq' \' ' ,\$x=.r $S3 [OK] -- OUT: $S3 . [OK]
389
389
STOP
390
390
EOF
391
- test_cmp_exclude_clean expected.log rot13-filter .log &&
391
+ test_cmp_exclude_clean expected.log debug .log &&
392
392
393
393
filter_git checkout --quiet --no-progress empty-branch &&
394
394
cat >expected.log <<-EOF &&
@@ -397,7 +397,7 @@ test_expect_success PERL 'required process filter should filter data' '
397
397
IN: clean test.r $S [OK] -- OUT: $S . [OK]
398
398
STOP
399
399
EOF
400
- test_cmp_exclude_clean expected.log rot13-filter .log &&
400
+ test_cmp_exclude_clean expected.log debug .log &&
401
401
402
402
filter_git checkout --quiet --no-progress master &&
403
403
cat >expected.log <<-EOF &&
@@ -409,7 +409,7 @@ test_expect_success PERL 'required process filter should filter data' '
409
409
IN: smudge testsubdir/test3 ' \' ' sq' \' ' ,\$x=.r $S3 [OK] -- OUT: $S3 . [OK]
410
410
STOP
411
411
EOF
412
- test_cmp_exclude_clean expected.log rot13-filter .log &&
412
+ test_cmp_exclude_clean expected.log debug .log &&
413
413
414
414
test_cmp_committed_rot13 "$TEST_ROOT/test.o" test.r &&
415
415
test_cmp_committed_rot13 "$TEST_ROOT/test2.o" test2.r &&
@@ -419,7 +419,7 @@ test_expect_success PERL 'required process filter should filter data' '
419
419
420
420
test_expect_success PERL ' required process filter takes precedence' '
421
421
test_config_global filter.protocol.clean false &&
422
- test_config_global filter.protocol.process "rot13-filter.pl clean" &&
422
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean" &&
423
423
test_config_global filter.protocol.required true &&
424
424
rm -rf repo &&
425
425
mkdir repo &&
@@ -439,12 +439,12 @@ test_expect_success PERL 'required process filter takes precedence' '
439
439
IN: clean test.r $S [OK] -- OUT: $S . [OK]
440
440
STOP
441
441
EOF
442
- test_cmp_count expected.log rot13-filter .log
442
+ test_cmp_count expected.log debug .log
443
443
)
444
444
'
445
445
446
446
test_expect_success PERL ' required process filter should be used only for "clean" operation only' '
447
- test_config_global filter.protocol.process "rot13-filter.pl clean" &&
447
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean" &&
448
448
rm -rf repo &&
449
449
mkdir repo &&
450
450
(
@@ -462,7 +462,7 @@ test_expect_success PERL 'required process filter should be used only for "clean
462
462
IN: clean test.r $S [OK] -- OUT: $S . [OK]
463
463
STOP
464
464
EOF
465
- test_cmp_count expected.log rot13-filter .log &&
465
+ test_cmp_count expected.log debug .log &&
466
466
467
467
rm test.r &&
468
468
@@ -474,12 +474,12 @@ test_expect_success PERL 'required process filter should be used only for "clean
474
474
init handshake complete
475
475
STOP
476
476
EOF
477
- test_cmp_exclude_clean expected.log rot13-filter .log
477
+ test_cmp_exclude_clean expected.log debug .log
478
478
)
479
479
'
480
480
481
481
test_expect_success PERL ' required process filter should process multiple packets' '
482
- test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
482
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean smudge" &&
483
483
test_config_global filter.protocol.required true &&
484
484
485
485
rm -rf repo &&
@@ -514,7 +514,7 @@ test_expect_success PERL 'required process filter should process multiple packet
514
514
IN: clean 3pkt_2+1.file $(($S*2+1)) [OK] -- OUT: $(($S*2+1)) ... [OK]
515
515
STOP
516
516
EOF
517
- test_cmp_count expected.log rot13-filter .log &&
517
+ test_cmp_count expected.log debug .log &&
518
518
519
519
rm -f *.file &&
520
520
@@ -529,7 +529,7 @@ test_expect_success PERL 'required process filter should process multiple packet
529
529
IN: smudge 3pkt_2+1.file $(($S*2+1)) [OK] -- OUT: $(($S*2+1)) ... [OK]
530
530
STOP
531
531
EOF
532
- test_cmp_exclude_clean expected.log rot13-filter .log &&
532
+ test_cmp_exclude_clean expected.log debug .log &&
533
533
534
534
for FILE in *.file
535
535
do
@@ -539,7 +539,7 @@ test_expect_success PERL 'required process filter should process multiple packet
539
539
'
540
540
541
541
test_expect_success PERL ' required process filter with clean error should fail' '
542
- test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
542
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean smudge" &&
543
543
test_config_global filter.protocol.required true &&
544
544
rm -rf repo &&
545
545
mkdir repo &&
@@ -558,7 +558,7 @@ test_expect_success PERL 'required process filter with clean error should fail'
558
558
'
559
559
560
560
test_expect_success PERL ' process filter should restart after unexpected write failure' '
561
- test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
561
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean smudge" &&
562
562
rm -rf repo &&
563
563
mkdir repo &&
564
564
(
@@ -579,7 +579,7 @@ test_expect_success PERL 'process filter should restart after unexpected write f
579
579
git add . &&
580
580
rm -f *.r &&
581
581
582
- rm -f rot13-filter .log &&
582
+ rm -f debug .log &&
583
583
git checkout --quiet --no-progress . 2>git-stderr.log &&
584
584
585
585
grep "smudge write error at" git-stderr.log &&
@@ -595,7 +595,7 @@ test_expect_success PERL 'process filter should restart after unexpected write f
595
595
IN: smudge test2.r $S2 [OK] -- OUT: $S2 . [OK]
596
596
STOP
597
597
EOF
598
- test_cmp_exclude_clean expected.log rot13-filter .log &&
598
+ test_cmp_exclude_clean expected.log debug .log &&
599
599
600
600
test_cmp_committed_rot13 "$TEST_ROOT/test.o" test.r &&
601
601
test_cmp_committed_rot13 "$TEST_ROOT/test2.o" test2.r &&
@@ -609,7 +609,7 @@ test_expect_success PERL 'process filter should restart after unexpected write f
609
609
'
610
610
611
611
test_expect_success PERL ' process filter should not be restarted if it signals an error' '
612
- test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
612
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean smudge" &&
613
613
rm -rf repo &&
614
614
mkdir repo &&
615
615
(
@@ -639,7 +639,7 @@ test_expect_success PERL 'process filter should not be restarted if it signals a
639
639
IN: smudge test2.r $S2 [OK] -- OUT: $S2 . [OK]
640
640
STOP
641
641
EOF
642
- test_cmp_exclude_clean expected.log rot13-filter .log &&
642
+ test_cmp_exclude_clean expected.log debug .log &&
643
643
644
644
test_cmp_committed_rot13 "$TEST_ROOT/test.o" test.r &&
645
645
test_cmp_committed_rot13 "$TEST_ROOT/test2.o" test2.r &&
@@ -648,7 +648,7 @@ test_expect_success PERL 'process filter should not be restarted if it signals a
648
648
'
649
649
650
650
test_expect_success PERL ' process filter abort stops processing of all further files' '
651
- test_config_global filter.protocol.process "rot13-filter.pl clean smudge" &&
651
+ test_config_global filter.protocol.process "rot13-filter.pl debug.log clean smudge" &&
652
652
rm -rf repo &&
653
653
mkdir repo &&
654
654
(
@@ -676,7 +676,7 @@ test_expect_success PERL 'process filter abort stops processing of all further f
676
676
IN: smudge abort.r $SA [OK] -- OUT: 0 [ABORT]
677
677
STOP
678
678
EOF
679
- test_cmp_exclude_clean expected.log rot13-filter .log &&
679
+ test_cmp_exclude_clean expected.log debug .log &&
680
680
681
681
test_cmp "$TEST_ROOT/test.o" test.r &&
682
682
test_cmp "$TEST_ROOT/test2.o" test2.r &&
0 commit comments