Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 126 for mkdtemp (0.15 sec)

  1. manifests/addons/gen.sh

    # This script sets up the plain text rendered deployments for addons
    # See samples/addons/README.md for more information
    
    ADDONS="${WD}/../../samples/addons"
    DASHBOARDS="${WD}/dashboards"
    mkdir -p "${ADDONS}"
    TMP=$(mktemp -d)
    LOKI_VERSION=${LOKI_VERSION:-"6.6.3"}
    GRAFANA_VERSION=${GRAFANA_VERSION:-"8.0.1"}
    
    # Set up kiali
    {
    helm3 template kiali-server \
      --namespace istio-system \
      --version 1.85.0 \
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testlife/life_test.go

    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	log.SetFlags(log.Lshortfile)
    	os.Exit(testMain(m))
    }
    
    func testMain(m *testing.M) int {
    	GOPATH, err := os.MkdirTemp("", "cgolife")
    	if err != nil {
    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	os.Setenv("GOPATH", GOPATH)
    
    	// Copy testdata into GOPATH/src/cgolife, along with a go.mod file
    	// declaring the same path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_test_cached.txt

    -- testdata/foo.txt --
    foo
    -- testdata/bar.txt --
    bar
    
    -- foo_test.go --
    package foo_test
    
    import (
    	"os"
    	"path/filepath"
    	"testing"
    )
    
    func TestWriteTmp(t *testing.T) {
    	dir, err := os.MkdirTemp("", "")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    	err = os.WriteFile(filepath.Join(dir, "x"), nil, 0666)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestReadTestdata(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  4. src/testing/internal/testdeps/deps.go

    }
    
    func coverTearDown(coverprofile string, gocoverdir string) (string, error) {
    	var err error
    	if gocoverdir == "" {
    		gocoverdir, err = os.MkdirTemp("", "gocoverdir")
    		if err != nil {
    			return "error setting GOCOVERDIR: bad os.MkdirTemp return", err
    		}
    		defer os.RemoveAll(gocoverdir)
    	}
    	CoverMarkProfileEmittedFunc(true)
    	cmode := CoverMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. pkg/test/framework/suitecontext.go

    	return c.settings
    }
    
    // CreateDirectory creates a new subdirectory within this context.
    func (c *suiteContext) CreateDirectory(name string) (string, error) {
    	dir, err := os.MkdirTemp(c.workDir, name)
    	if err != nil {
    		scopes.Framework.Errorf("Error creating temp dir: runID='%s', prefix='%s', workDir='%v', err='%v'",
    			c.settings.RunID, name, c.workDir, err)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. ci/official/utilities/rename_and_verify_wheels.sh

      echo "Error: Generated wheel is too big! Limit is $TFCI_WHL_SIZE_LIMIT"
      echo '(search for TFCI_WHL_SIZE_LIMIT to change it)'
      ls -sh *.whl
      exit 2
    fi
    
    # Quick install checks
    venv=$(mktemp -d)
    "python${TFCI_PYTHON_VERSION}" -m venv "$venv"
    python="$venv/bin/python3"
    "$python" -m pip install *.whl $TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS
    if [[ "$TFCI_WHL_IMPORT_TEST_ENABLE" == "1" ]]; then
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 21:16:27 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. hack/verify-vendor.sh

    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::setup_env
    
    # create a nice clean place to put our new vendor tree
    _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
    
    if [[ -z ${KEEP_TMP:-} ]]; then
        KEEP_TMP=false
    fi
    
    function cleanup {
      # make go module dirs writeable
      chmod -R +w "${_tmpdir}"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. bin/update_crds.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    set -e
    
    fail() {
      echo "$@" 1>&2
      exit 1
    }
    
    API_TMP="$(mktemp -d -u)"
    
    trap 'rm -rf "${API_TMP}"' EXIT
    
    SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
    ROOTDIR=$(dirname "${SCRIPTPATH}")
    cd "${ROOTDIR}"
    
    REPO="github.com/istio/api"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 14:28:27 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/teststdio/stdio_test.go

    	"os/exec"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	log.SetFlags(log.Lshortfile)
    	os.Exit(testMain(m))
    }
    
    func testMain(m *testing.M) int {
    	GOPATH, err := os.MkdirTemp("", "cgostdio")
    	if err != nil {
    		log.Panic(err)
    	}
    	defer os.RemoveAll(GOPATH)
    	os.Setenv("GOPATH", GOPATH)
    
    	// Copy testdata into GOPATH/src/cgostdio, along with a go.mod file
    	// declaring the same path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/config/joinconfiguration_test.go

    import (
    	"os"
    	"path/filepath"
    	"testing"
    
    	"github.com/lithammer/dedent"
    )
    
    func TestLoadJoinConfigurationFromFile(t *testing.T) {
    	// 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 string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 09:17:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top