• Clayton Coleman's avatar
    Ignore the sticky gid mode bit when a test is running on memory EmptyDir · 7f01e233
    Clayton Coleman authored
    While running unit tests for perf on a Kube cluster with a memory backed
    emptydir as TMPDIR, TestSafeMakeDir failed with:
    
    ```
    --- FAIL: TestSafeMakeDir (0.01s)
    	mount_linux_test.go:661: test "directory-exists": expected permissions 20000000750, got 20020000750
    ```
    
    (TMPDIR set to /tmp/volume, /tmp/volume is EmptyDir with type Memory)
    
    The test doesn't actually care about `os.ModeSetgid`, so specifically mask it out when testing this way.
    7f01e233
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
exec.go Loading commit data...
exec_mount.go Loading commit data...
exec_mount_test.go Loading commit data...
exec_mount_unsupported.go Loading commit data...
fake.go Loading commit data...
mount.go Loading commit data...
mount_helper.go Loading commit data...
mount_helper_test.go Loading commit data...
mount_linux.go Loading commit data...
mount_linux_test.go Loading commit data...
mount_test.go Loading commit data...
mount_unsupported.go Loading commit data...
mount_windows.go Loading commit data...
mount_windows_test.go Loading commit data...
nsenter_mount.go Loading commit data...
nsenter_mount_test.go Loading commit data...
nsenter_mount_unsupported.go Loading commit data...
safe_format_and_mount_test.go Loading commit data...