Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 228 for mkdtemp (0.48 sec)

  1. tests/fuzz/utils/utils.go

    func (n NopTester) Log(args ...any) {}
    
    func (n NopTester) Logf(format string, args ...any) {}
    
    func (n NopTester) Skip(args ...any) {}
    
    func (n NopTester) TempDir() string {
    	tempDir, _ := os.MkdirTemp("", "test")
    	return tempDir
    }
    
    func (n NopTester) Helper() {}
    
    func (n NopTester) Cleanup(f func()) {}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 30 15:31:14 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. ci/official/upload.sh

    # "gsutil -m rsync" runs in parallel.
    # "gsutil rsync -r" is recursive and makes directories work.
    # "gsutil rsync -d" is "sync and delete files from destination if not present in source"
    
    DOWNLOADS="$(mktemp -d)"
    mkdir -p "$DOWNLOADS"
    gsutil -m rsync -r "$TFCI_ARTIFACT_STAGING_GCS_URI" "$DOWNLOADS"
    ls "$DOWNLOADS"
    
    # Upload all build artifacts to e.g. gs://tensorflow/versions/2.16.0-rc1 (releases) or
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 20:52:12 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. test/fixedbugs/issue52127.go

    // cause deadlocks instead of displaying error messages
    // correctly.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"os/exec"
    	"path/filepath"
    )
    
    func main() {
    	dir, err := os.MkdirTemp("", "issue52127")
    	if err != nil {
    		panic(err)
    	}
    	defer os.RemoveAll(dir)
    
    	args := []string{"go", "build"}
    	write := func(prefix string, i int, data string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. prow/release-commit.sh

    TAG=$(git rev-parse HEAD)
    VERSION="${NEXT_VERSION}-alpha.${TAG}"
    
    # In CI we want to store the outputs to artifacts, which will preserve the build
    # If not specified, we can just create a temporary directory
    WORK_DIR="$(mktemp -d)/build"
    mkdir -p "${WORK_DIR}"
    
    MANIFEST=$(cat <<EOF
    version: ${VERSION}
    docker: ${DOCKER_HUB}
    directory: ${WORK_DIR}
    ignoreVulnerability: true
    dependencies:
    ${DEPENDENCIES:-$(cat <<EOD
      istio:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:57:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/go/go_windows_test.go

    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    
    	"cmd/go/internal/robustio"
    )
    
    func TestAbsolutePath(t *testing.T) {
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    
    	tmp, err := os.MkdirTemp("", "TestAbsolutePath")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer robustio.RemoveAll(tmp)
    
    	file := filepath.Join(tmp, "a.go")
    	err = os.WriteFile(file, []byte{}, 0644)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:26 UTC 2022
    - 1K bytes
    - Viewed (0)
  6. src/os/example_test.go

    	}
    }
    
    func ExampleMkdirTemp() {
    	dir, err := os.MkdirTemp("", "example")
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer os.RemoveAll(dir) // clean up
    
    	file := filepath.Join(dir, "tmpfile")
    	if err := os.WriteFile(file, []byte("content"), 0666); err != nil {
    		log.Fatal(err)
    	}
    }
    
    func ExampleMkdirTemp_suffix() {
    	logsDir, err := os.MkdirTemp("", "*-logs")
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/path/filepath/example_unix_walk_test.go

    //go:build !windows && !plan9
    
    package filepath_test
    
    import (
    	"fmt"
    	"io/fs"
    	"os"
    	"path/filepath"
    )
    
    func prepareTestDirTree(tree string) (string, error) {
    	tmpDir, err := os.MkdirTemp("", "")
    	if err != nil {
    		return "", fmt.Errorf("error creating temp directory: %v\n", err)
    	}
    
    	err = os.MkdirAll(filepath.Join(tmpDir, tree), 0755)
    	if err != nil {
    		os.RemoveAll(tmpDir)
    		return "", err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  8. pkg/routes/logs_test.go

    	// check file with normal name which doesn't exist.
    	if logFileNameIsTooLong(normalFileName) {
    		t.Error("failed to check normal filename")
    	}
    
    	// check file with normal name which does exist.
    	dir, err := os.MkdirTemp("", "logs")
    	if err != nil {
    		t.Fatal("failed to create temp dir")
    	}
    	defer os.RemoveAll(dir)
    
    	normalFileName = filepath.Join(dir, normalFileName)
    	f, err := os.Create(normalFileName)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 21 16:25:48 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/arm64/asm_arm64_test.go

    // need to be fixed.
    func TestLarge(t *testing.T) {
    	if testing.Short() {
    		t.Skip("Skip in short mode")
    	}
    	testenv.MustHaveGoBuild(t)
    
    	dir, err := os.MkdirTemp("", "testlarge")
    	if err != nil {
    		t.Fatalf("could not create directory: %v", err)
    	}
    	defer os.RemoveAll(dir)
    
    	// generate a very large function
    	buf := bytes.NewBuffer(make([]byte, 0, 7000000))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/cshared_test.go

    	cc = cc[:len(cc):len(cc)]
    
    	if GOOS == "windows" {
    		exeSuffix = ".exe"
    	}
    
    	// Copy testdata into GOPATH/src/testcshared, along with a go.mod file
    	// declaring the same path.
    
    	GOPATH, err := os.MkdirTemp("", "cshared_test")
    	if err != nil {
    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	os.Setenv("GOPATH", GOPATH)
    
    	modRoot := filepath.Join(GOPATH, "src", "testcshared")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top