- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 228 for mkdtemp (0.14 sec)
-
src/go/internal/srcimporter/srcimporter.go
for _, err := range errors { if err != nil { return nil, err } } return files, nil } func (p *Importer) cgo(bp *build.Package) (*ast.File, error) { tmpdir, err := os.MkdirTemp("", "srcimporter") if err != nil { return nil, err } defer os.RemoveAll(tmpdir) goCmd := "go" if p.ctxt.GOROOT != "" { goCmd = filepath.Join(p.ctxt.GOROOT, "bin", "go") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0) -
pkg/credentialprovider/config_test.go
var fileInfo *os.File //test dockerconfig json inputDockerconfigJSONFile := "{ \"auths\": { \"http://foo.example.com\":{\"auth\":\"Zm9vOmJhcgo=\",\"email\":\"******@****.***\"}}}" preferredPath, err := os.MkdirTemp("", "test_foo_bar_dockerconfigjson_") if err != nil { t.Fatalf("Creating tmp dir fail: %v", err) return } defer os.RemoveAll(preferredPath)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 10.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go
"failed CreateWithToken:\n\texpected: %s\n\t actual: %s", rt.expected, cwc.Kind, ) } }) } } func TestWriteKubeconfigToDisk(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir") } defer os.RemoveAll(tmpdir) var writeConfig = []struct { name string cc configClient
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 18 06:49:59 UTC 2023 - 13.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/join_test.go
name: someName ignorePreflightErrors: - c - d `, kubeadmapiv1.SchemeGroupVersion.String(), expectedCRISocket) func TestNewJoinData(t *testing.T) { // create temp directory tmpDir, err := os.MkdirTemp("", "kubeadm-join-test") if err != nil { t.Errorf("Unable to create temporary directory: %v", err) } defer os.RemoveAll(tmpDir) // create kubeconfig
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 12:26:20 UTC 2024 - 12.7K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/config_test.go
if err != nil { t.Fatalf("can't create printer for the output format %s: %+v", output.TextOutput, err) } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { tmpDir, err := os.MkdirTemp("", "kubeadm-images-test") if err != nil { t.Fatalf("Unable to create temporary directory: %v", err) } defer os.RemoveAll(tmpDir) configFilePath := filepath.Join(tmpDir, "test-config-file")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 13K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go
} } else { if len(errs) > 0 { t.Fatalf("Unexpected error %#v", errs) } } } } func TestPathBuilderWithMultiple(t *testing.T) { // create test dirs tmpDir, err := os.MkdirTemp("", "recursive_test_multiple") if err != nil { t.Fatalf("error creating temp dir: %v", err) } createTestDir(t, fmt.Sprintf("%s/%s", tmpDir, "recursive/pod/pod_1"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 11:58:41 UTC 2023 - 56.1K bytes - Viewed (0) -
src/syscall/syscall_linux_test.go
// provides a cleanup function. Used when PWD is read-only. func chtmpdir(t *testing.T) func() { oldwd, err := os.Getwd() if err != nil { t.Fatalf("chtmpdir: %v", err) } d, err := os.MkdirTemp("", "test") if err != nil { t.Fatalf("chtmpdir: %v", err) } if err := os.Chdir(d); err != nil { t.Fatalf("chtmpdir: %v", err) } return func() { if err := os.Chdir(oldwd); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23K bytes - Viewed (0) -
src/debug/gosym/pclntab_test.go
if runtime.GOOS != "linux" && testing.Short() { t.Skipf("skipping in short mode on non-Linux system %s", runtime.GOARCH) } var err error pclineTempDir, err = os.MkdirTemp("", "pclinetest") if err != nil { t.Fatal(err) } pclinetestBinary = filepath.Join(pclineTempDir, "pclinetest") cmd := exec.Command(testenv.GoToolPath(t), "build", "-o", pclinetestBinary) cmd.Dir = "testdata"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 17:17:44 UTC 2022 - 9.6K bytes - Viewed (0) -
common/scripts/kind_provisioner.sh
# cluster topology information to be loaded in advance function setup_kind_clusters() { IMAGE="${1:-"${DEFAULT_KIND_IMAGE}"}" KUBECONFIG_DIR="${ARTIFACTS:-$(mktemp -d)}/kubeconfig" IP_FAMILY="${2:-ipv4}" check_default_cluster_yaml # Trap replaces any previous trap's, so we need to explicitly cleanup clusters here trap cleanup_kind_clusters EXIT
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 19:12:55 UTC 2024 - 17.3K bytes - Viewed (0) -
src/cmd/go/script_test.go
} for _, file := range files { file := file name := strings.TrimSuffix(filepath.Base(file), ".txt") t.Run(name, func(t *testing.T) { t.Parallel() StartProxy() workdir, err := os.MkdirTemp(testTmpDir, name) if err != nil { t.Fatal(err) } if !*testWork { defer removeAll(workdir) } s, err := script.NewState(tbContext(ctx, t), workdir, env) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 12.2K bytes - Viewed (0)