File tree Expand file tree Collapse file tree 8 files changed +16
-11
lines changed Expand file tree Collapse file tree 8 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ begin_test "macros"
34
34
35
35
cd dir
36
36
git lfs track ' *.bin' 2>&1 | tee track.log
37
- ! grep ' "*.bin" already supported' track.log
37
+ grep ' "*.bin" already supported' track.log && exit 1
38
+ true
38
39
39
40
# NOTE: At present we do not test that "git lfs track" reports
40
41
# "already supported" when it finds a pattern in a subdirectory's
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ begin_test "checkout"
49
49
[ " $contents " = " $( cat folder2/nested.dat) " ]
50
50
grep " Checking out LFS objects: 100% (5/5), 95 B" checkout.log
51
51
grep ' accepting "file1.dat"' checkout.log
52
- ! grep ' rejecting "file1.dat"' checkout.log
52
+ grep ' rejecting "file1.dat"' checkout.log && exit 1
53
53
54
54
# Remove the working directory
55
55
rm -rf file1.dat file2.dat file3.dat folder1/nested.dat folder2/nested.dat
@@ -231,7 +231,7 @@ begin_test "checkout: conflicts"
231
231
git commit -m " second"
232
232
233
233
# This will cause a conflict.
234
- ! git merge first
234
+ git merge first && exit 1
235
235
236
236
git lfs checkout --to base.txt --base file1.dat
237
237
git lfs checkout --to ours.txt --ours file1.dat
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ begin_test "fetch (shared repository)"
95
95
rm -rf .git/lfs/objects
96
96
97
97
git lfs fetch 2>&1 | tee fetch.log
98
- ! grep " Could not scan" fetch.log
98
+ grep " Could not scan" fetch.log && exit 1
99
99
assert_local_object " $contents_oid " 1
100
100
101
101
git lfs fsck 2>&1 | tee fsck.log
Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ begin_test "migrate import (--everything with tag pointing to tag)"
846
846
assert_pointer " refs/heads/my-feature" " a.md" " $md_feature_oid " " 30"
847
847
848
848
git tag --points-at refs/tags/abc | grep -q def
849
- ! git tag --points-at refs/tags/def | grep -q abc
849
+ git tag --points-at refs/tags/def | grep -q abc && exit 1
850
850
851
851
assert_local_object " $md_main_oid " " 140"
852
852
assert_local_object " $md_feature_oid " " 30"
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ begin_test "post-commit does not enter submodules"
101
101
102
102
git add * .dat
103
103
GIT_TRACE=1 git commit -m " Committed large files" 2>&1 | tee output
104
- ! grep -E ' filepathfilter:.*submodule/foo' output
104
+ grep -E ' filepathfilter:.*submodule/foo' output && exit 1
105
+ true
105
106
)
106
107
end_test
Original file line number Diff line number Diff line change @@ -1216,7 +1216,8 @@ begin_test "pre-push with pushDefault and explicit remote"
1216
1216
GIT_TRACE=1 GIT_TRANSFER_TRACE=1 git push origin main 2>&1 | tee push.log
1217
1217
1218
1218
assert_server_object " $reponame " 98ea6e4f216f2fb4b69fff9b3a44842c38686ca685f3f55dc48c5d3fb1107be4 " refs/heads/main"
1219
- ! grep wrong-url push.log
1219
+ grep wrong-url push.log && exit 1
1220
+ true
1220
1221
)
1221
1222
end_test
1222
1223
@@ -1280,7 +1281,8 @@ begin_test "pre-push does not traverse Git objects server has"
1280
1281
# Verify that we haven't tried to push or query for the object we already
1281
1282
# pushed before; i.e., we didn't see it because we ignored its Git object
1282
1283
# during traversal.
1283
- ! grep $contents_oid push.log
1284
+ grep $contents_oid push.log && exit 1
1285
+ true
1284
1286
)
1285
1287
end_test
1286
1288
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ begin_test "standalone-file-lfs.url http URL"
455
455
[ ${PIPESTATUS[0]} = " 0" ]
456
456
457
457
# We should not use the custom adapter process here.
458
- ! grep " xfer: started custom adapter process" push.log
458
+ grep " xfer: started custom adapter process" push.log && exit 1
459
459
grep -F " $GITSERVER /$reponame " push.log
460
460
461
461
# Make sure we didn't write to the wrong repo.
@@ -465,7 +465,7 @@ begin_test "standalone-file-lfs.url http URL"
465
465
rm -fr .git/lfs/objects
466
466
467
467
GIT_TRACE=1 GIT_TRANSFER_TRACE=1 git lfs fetch --all 2>&1 | tee fetch.log
468
- ! grep " xfer: started custom adapter process" fetch.log
468
+ grep " xfer: started custom adapter process" fetch.log && exit 1
469
469
grep -F " $GITSERVER /$reponame " fetch.log
470
470
471
471
git lfs fsck
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ begin_test "track --no-excluded"
74
74
echo " *.mov -filter=lfs -text" >> a/b/.gitattributes
75
75
76
76
git lfs track --no-excluded | tee track.log
77
- ! grep " Listing excluded patterns" track.log
77
+ grep " Listing excluded patterns" track.log && exit 1
78
+ true
78
79
)
79
80
end_test
80
81
You can’t perform that action at this time.
0 commit comments