get.porter.sh/porter@v1.3.0/pkg/portercontext/helpers_nix.go (about)

     1  //go:build !windows
     2  
     3  package portercontext
     4  
     5  import "syscall"
     6  
     7  func (c *TestContext) DisableUmask() {
     8  	// HACK: When running tests that check file permissions, if umask is set we can't validate the permissions we set
     9  	// Turn off umask when running integration tests against the OS filesystem
    10  	syscall.Umask(0000)
    11  }