Skip to content

Commit 5788d6e

Browse files
TBBlegabriel-samfira
authored andcommitted
Don't use all-upper-case filenames in snapshot tests
NTFS, when presented with an all-caps filename, assumes you are just being loud for no reason, and instead stores an all-lower-case filename. Signed-off-by: Paul "TBBle" Hampson <[email protected]>
1 parent 3cdcb2f commit 5788d6e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

snapshots/testsuite/testsuite.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -906,19 +906,19 @@ func check128LayersMount(name string) func(ctx context.Context, t *testing.T, sn
906906
lowestApply := fstest.Apply(
907907
fstest.CreateFile("/bottom", []byte("way at the bottom\n"), 0777),
908908
fstest.CreateFile("/overwriteme", []byte("FIRST!\n"), 0777),
909-
fstest.CreateDir("/ADDHERE", 0755),
910-
fstest.CreateDir("/ONLYME", 0755),
911-
fstest.CreateFile("/ONLYME/bottom", []byte("bye!\n"), 0777),
909+
fstest.CreateDir("/addhere", 0755),
910+
fstest.CreateDir("/onlyme", 0755),
911+
fstest.CreateFile("/onlyme/bottom", []byte("bye!\n"), 0777),
912912
)
913913

914914
appliers := []fstest.Applier{lowestApply}
915915
for i := 1; i <= 127; i++ {
916916
appliers = append(appliers, fstest.Apply(
917917
fstest.CreateFile("/overwriteme", []byte(fmt.Sprintf("%d WAS HERE!\n", i)), 0777),
918-
fstest.CreateFile(fmt.Sprintf("/ADDHERE/file-%d", i), []byte("same\n"), 0755),
919-
fstest.RemoveAll("/ONLYME"),
920-
fstest.CreateDir("/ONLYME", 0755),
921-
fstest.CreateFile(fmt.Sprintf("/ONLYME/file-%d", i), []byte("only me!\n"), 0777),
918+
fstest.CreateFile(fmt.Sprintf("/addhere/file-%d", i), []byte("same\n"), 0755),
919+
fstest.RemoveAll("/onlyme"),
920+
fstest.CreateDir("/onlyme", 0755),
921+
fstest.CreateFile(fmt.Sprintf("/onlyme/file-%d", i), []byte("only me!\n"), 0777),
922922
))
923923
}
924924

0 commit comments

Comments
 (0)