- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 228 for mkdtemp (0.13 sec)
-
src/runtime/security_test.go
// (at least freebsd-amd64-13_0) the default PATH doesn't include /usr/sbin, which is where // chown lives, but using 'su root -c' gives us the correct PATH. // buildTestProg uses os.MkdirTemp which creates directories with 0700, which prevents // setuid binaries from executing because of the missing g+rx, so we need to set the parent // directory to better permissions before anything else. We created this directory, so we
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 13 18:10:14 UTC 2023 - 4.1K bytes - Viewed (0) -
cmd/kube-scheduler/app/testing/testserver.go
os.RemoveAll(result.TmpDir) } configz.Delete("componentconfig") } defer func() { if result.TearDownFn == nil { tearDown() } }() result.TmpDir, err = os.MkdirTemp("", "kube-scheduler") if err != nil { return result, fmt.Errorf("failed to create temp dir: %v", err) } fs := pflag.NewFlagSet("test", pflag.PanicOnError) opts := options.NewOptions() nfs := opts.Flags
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 10:35:59 UTC 2023 - 5.2K bytes - Viewed (0) -
common/scripts/setup_env.sh
# of the original file, so that the container can write to it. add_KUBECONFIG_if_exists () { if [[ -f "$1" ]]; then local local_config local_config="$(mktemp)" cp "${1}" "${local_config}" kubeconfig_random="$(od -vAn -N4 -tx /dev/random | tr -d '[:space:]' | cut -c1-8)" container_kubeconfig+="/config/${kubeconfig_random}:"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 14:37:27 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/internal/obj/ppc64/asm_test.go
PNOP ` // Test that nops are inserted when crossing 64B boundaries, and // alignment is adjusted to avoid crossing. func TestPfxAlign(t *testing.T) { testenv.MustHaveGoBuild(t) dir, err := os.MkdirTemp("", "testpfxalign") if err != nil { t.Fatalf("could not create directory: %v", err) } defer os.RemoveAll(dir) pgms := []struct { text []byte align string hasNop bool }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 09 22:14:57 UTC 2024 - 17.3K bytes - Viewed (0) -
src/net/mockserver_test.go
"sync" "testing" "time" ) // testUnixAddr uses os.MkdirTemp to get a name that is unique. func testUnixAddr(t testing.TB) string { // Pass an empty pattern to get a directory name that is as short as possible. // If we end up with a name longer than the sun_path field in the sockaddr_un // struct, we won't be able to make the syscall to open the socket. d, err := os.MkdirTemp("", "") if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/kube-controller-manager/app/testing/testserver.go
} } if len(result.TmpDir) != 0 { os.RemoveAll(result.TmpDir) } } defer func() { if result.TearDownFn == nil { tearDown() } }() result.TmpDir, err = os.MkdirTemp("", "kube-controller-manager") if err != nil { return result, fmt.Errorf("failed to create temp dir: %v", err) } fs := pflag.NewFlagSet("test", pflag.PanicOnError)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:02 UTC 2023 - 5.4K bytes - Viewed (0) -
src/os/removeall_test.go
break default: t.Skip("skipping for not implemented platforms") } prevDir, err := Getwd() if err != nil { t.Fatalf("Could not get wd: %s", err) } startPath, err := MkdirTemp("", "TestRemoveAllLongPath-") if err != nil { t.Fatalf("Could not create TempDir: %s", err) } defer RemoveAll(startPath) err = Chdir(startPath) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:29 UTC 2024 - 12.3K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/lockedfile_test.go
"fmt" "internal/testenv" "os" "path/filepath" "testing" "time" "cmd/go/internal/lockedfile" ) func mustTempDir(t *testing.T) (dir string, remove func()) { t.Helper() dir, err := os.MkdirTemp("", filepath.Base(t.Name())) if err != nil { t.Fatal(err) } return dir, func() { os.RemoveAll(dir) } } const ( quiescent = 10 * time.Millisecond probablyStillBlocked = 10 * time.Second
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 5.7K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go
// Could not find any for now. tests, err := readZipSumTests() if err != nil { t.Fatal(err) } if *modCacheDir != "" { cfg.BuildContext.GOPATH = *modCacheDir } else { tmpDir, err := os.MkdirTemp("", "TestZipSums") if err != nil { t.Fatal(err) } if *debugZipSum { fmt.Fprintf(os.Stderr, "TestZipSums: modCacheDir: %s\n", tmpDir) } else { defer os.RemoveAll(tmpDir) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 19:33:59 UTC 2023 - 6.2K bytes - Viewed (0) -
src/os/os_test.go
t.Errorf("got nils %d errs %d, want 2 2", nils, errs) } } func TestRandomLen(t *testing.T) { for range 5 { dir, err := MkdirTemp(t.TempDir(), "*") if err != nil { t.Fatal(err) } base := filepath.Base(dir) if len(base) > 10 { t.Errorf("MkdirTemp returned len %d: %s", len(base), base) } } for range 5 { f, err := CreateTemp(t.TempDir(), "*") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0)