Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 228 for mkdtemp (0.21 sec)

  1. pkg/kubelet/util/swap/swap_util.go

    			return true
    		}
    
    		if mountPath == "" {
    			klog.ErrorS(errors.New("mount path is empty, falling back to /tmp"), "")
    		}
    
    		mountPath, err = os.MkdirTemp(mountPath, "tmpfs-noswap-test-")
    		if err != nil {
    			klog.InfoS("error creating dir to test if tmpfs noswap is enabled. Assuming not supported", "mount path", mountPath, "error", err)
    			return false
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/x86/obj6_test.go

    func normalize(s string) string {
    	return spaces_re.ReplaceAllLiteralString(strings.TrimSpace(s), " ")
    }
    
    func asmOutput(t *testing.T, s string) []byte {
    	tmpdir, err := os.MkdirTemp("", "progedittest")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpdir)
    	tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer tmpfile.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  3. pkg/volume/util/nested_volumes_test.go

    								{MountPath: "foo/../../dir/skip", Name: "vol10"},
    							},
    						},
    					},
    				},
    			},
    		},
    	}
    	for _, test := range tc {
    		dir, err := os.MkdirTemp("", "TestMakeNestedMountpoints.")
    		if err != nil {
    			t.Errorf("Unexpected error trying to create temp directory: %v", err)
    			return
    		}
    		defer os.RemoveAll(dir)
    
    		rootdir := filepath.Join(dir, "vol")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. cmd/kubelet/app/server_bootstrap_test.go

    // manager that will use the bootstrap client until we get a valid cert, then use our
    // provided identity on subsequent requests.
    func Test_buildClientCertificateManager(t *testing.T) {
    	testDir, err := os.MkdirTemp("", "kubeletcert")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer func() { os.RemoveAll(testDir) }()
    
    	serverPrivateKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39, needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_sql_databases_py310.py

    from ...utils import needs_py310, needs_pydanticv1
    
    
    @pytest.fixture(scope="module", name="client")
    def get_client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testerrors/errors_test.go

    			}
    		}
    		if len(errors) == 0 {
    			t.Fatalf("cannot find ERROR HERE")
    		}
    		expect(t, file, errors)
    	})
    }
    
    func expect(t *testing.T, file string, errors []*regexp.Regexp) {
    	dir, err := os.MkdirTemp("", filepath.Base(t.Name()))
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    
    	dst := filepath.Join(dir, strings.TrimSuffix(file, ".go"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/config/initconfiguration_test.go

    certificatesDir: %s
    kubernetesVersion: %s`, kubeadmapiv1.SchemeGroupVersion.String(), certDir, constants.MinimumControlPlaneVersion.String()))
    
    	// Create temp folder for the test case
    	tmpdir, err := os.MkdirTemp("", "")
    	if err != nil {
    		t.Fatalf("Couldn't create tmpdir: %v", err)
    	}
    	defer os.RemoveAll(tmpdir)
    
    	// cfgFiles is in cluster_test.go
    	var tests = []struct {
    		name         string
    		fileContents []byte
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go

    		},
    	}
    
    	for name, test := range tests {
    		t.Run(name, func(t *testing.T) {
    			t.Logf("Running test: %s", name)
    
    			// Create a temporary directory for our fake config dir:
    			tmpDir, err := os.MkdirTemp("", "kubeadm-reset-test")
    			if err != nil {
    				t.Errorf("Unable to create temporary directory: %s", err)
    			}
    
    			for _, createDir := range test.setupDirs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. common/Makefile.common.mk

    dump-licenses-csv: mod-download-go
    	@license-lint --config common/config/license-lint.yml --csv
    
    mirror-licenses: mod-download-go
    	@rm -fr licenses
    	@license-lint --mirror
    
    TMP := $(shell mktemp -d -u)
    UPDATE_BRANCH ?= "master"
    
    BUILD_TOOLS_ORG ?= "istio"
    
    update-common:
    	@mkdir -p $(TMP)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top