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 <Paul.Hampson@Pobox.com>
This commit is contained in:
		 Paul "TBBle" Hampson
					Paul "TBBle" Hampson
				
			
				
					committed by
					
						 Gabriel Adrian Samfira
						Gabriel Adrian Samfira
					
				
			
			
				
	
			
			
			 Gabriel Adrian Samfira
						Gabriel Adrian Samfira
					
				
			
						parent
						
							909730decb
						
					
				
				
					commit
					8395e3a89a
				
			| @@ -903,19 +903,19 @@ func check128LayersMount(name string) func(ctx context.Context, t *testing.T, sn | |||||||
| 		lowestApply := fstest.Apply( | 		lowestApply := fstest.Apply( | ||||||
| 			fstest.CreateFile("/bottom", []byte("way at the bottom\n"), 0777), | 			fstest.CreateFile("/bottom", []byte("way at the bottom\n"), 0777), | ||||||
| 			fstest.CreateFile("/overwriteme", []byte("FIRST!\n"), 0777), | 			fstest.CreateFile("/overwriteme", []byte("FIRST!\n"), 0777), | ||||||
| 			fstest.CreateDir("/ADDHERE", 0755), | 			fstest.CreateDir("/addhere", 0755), | ||||||
| 			fstest.CreateDir("/ONLYME", 0755), | 			fstest.CreateDir("/onlyme", 0755), | ||||||
| 			fstest.CreateFile("/ONLYME/bottom", []byte("bye!\n"), 0777), | 			fstest.CreateFile("/onlyme/bottom", []byte("bye!\n"), 0777), | ||||||
| 		) | 		) | ||||||
|  |  | ||||||
| 		appliers := []fstest.Applier{lowestApply} | 		appliers := []fstest.Applier{lowestApply} | ||||||
| 		for i := 1; i <= 127; i++ { | 		for i := 1; i <= 127; i++ { | ||||||
| 			appliers = append(appliers, fstest.Apply( | 			appliers = append(appliers, fstest.Apply( | ||||||
| 				fstest.CreateFile("/overwriteme", []byte(fmt.Sprintf("%d WAS HERE!\n", i)), 0777), | 				fstest.CreateFile("/overwriteme", []byte(fmt.Sprintf("%d WAS HERE!\n", i)), 0777), | ||||||
| 				fstest.CreateFile(fmt.Sprintf("/ADDHERE/file-%d", i), []byte("same\n"), 0755), | 				fstest.CreateFile(fmt.Sprintf("/addhere/file-%d", i), []byte("same\n"), 0755), | ||||||
| 				fstest.RemoveAll("/ONLYME"), | 				fstest.RemoveAll("/onlyme"), | ||||||
| 				fstest.CreateDir("/ONLYME", 0755), | 				fstest.CreateDir("/onlyme", 0755), | ||||||
| 				fstest.CreateFile(fmt.Sprintf("/ONLYME/file-%d", i), []byte("only me!\n"), 0777), | 				fstest.CreateFile(fmt.Sprintf("/onlyme/file-%d", i), []byte("only me!\n"), 0777), | ||||||
| 			)) | 			)) | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user