Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 111 for mkdtemp (0.1 sec)

  1. samples/bookinfo/platform/kube/cleanup.sh

          kubectl delete -n "${NAMESPACE}" "$resource";
        done
      done
      kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo-versions.yaml" >/dev/null 2>&1
    fi
    
    OUTPUT=$(mktemp)
    export OUTPUT
    echo "Application cleanup may take up to one minute"
    kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo.yaml" > "${OUTPUT}" 2>&1
    ret=$?
    function cleanup() {
      rm -f "${OUTPUT}"
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/riscv/asm_test.go

    // branch, in order to ensure that it assembles successfully.
    func TestLargeBranch(t *testing.T) {
    	if testing.Short() {
    		t.Skip("Skipping test in short mode")
    	}
    	testenv.MustHaveGoBuild(t)
    
    	dir, err := os.MkdirTemp("", "testlargebranch")
    	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: Wed Nov 22 01:50:18 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. ci/official/utilities/repack_libtensorflow.sh

    #
    # Arguments:
    #   src_jar - path to the original srcjar
    #   dest_jar - path to the destination
    # Returns:
    #   None
    function cp_normalized_srcjar() {
      src_jar="$1"
      dest_jar="$2"
      tmp_dir=$(mktemp -d)
      cp "${src_jar}" "${tmp_dir}/orig.jar"
      pushd "${tmp_dir}"
      # Extract any src/ files
      jar -xf "${tmp_dir}/orig.jar" src/
      # Extract any org/ files under src/main/java
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 19:47:53 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top