- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 118 for mkdtemp (0.14 sec)
-
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) -
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) -
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) -
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) -
src/cmd/internal/obj/x86/pcrelative_test.go
RET ` const goData = ` package main func testASM() func main() { testASM() } ` func objdumpOutput(t *testing.T, mname, source string) []byte { tmpdir, err := os.MkdirTemp("", mname) if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpdir) err = os.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte(fmt.Sprintf("module %s\n", mname)), 0666) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 23:16:01 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/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, genBufSize))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:39:37 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/kubelet/config/file_test.go
if !apiequality.Semantic.DeepEqual(expected, update) { t.Fatalf("expected %#v, got %#v", expected, update) } } func mkTempDir(prefix string) (string, error) { return os.MkdirTemp(os.TempDir(), prefix) } func removeAll(dir string, t *testing.T) { if err := os.RemoveAll(dir); err != nil { t.Fatalf("unable to remove dir %s: %v", dir, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 2.1K bytes - Viewed (0) -
prow/integ-suite-kind.sh
if [[ -z "${SKIP_BUILD:-}" ]]; then HUB="${KIND_REGISTRY}" export HUB fi # Setup junit report and verbose logging export T="${T:-"-v -count=1"}" export CI="true" export ARTIFACTS="${ARTIFACTS:-$(mktemp -d)}" trace "init" make init if [[ -z "${SKIP_SETUP:-}" ]]; then export DEFAULT_CLUSTER_YAML="./prow/config/default.yaml" export METRICS_SERVER_CONFIG_DIR='./prow/config/metrics'
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 18 05:42:41 UTC 2024 - 5.1K bytes - Viewed (0) -
cmd/kubemark/app/hollow_node_test.go
// Such test is sufficient to detect e.g. missing kubelet dependencies that are not added in // pkg/kubemark/hollow_kubelet.go. func TestHollowNode(t *testing.T) { // temp dir tmpDir, err := os.MkdirTemp("", "hollow-node") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpDir) // https server server := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 10:06:15 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py
if len(argv) > 1: raise app.UsageError('Too many command-line arguments.') if FLAGS.save_model_path: save_model_path = FLAGS.save_model_path else: save_model_path = tempfile.mktemp(suffix='.saved_model') signature_def_map, init_op, assets_collection = create_signature() sess = tf.Session() sess.run(tf.initializers.global_variables())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 20 13:19:26 UTC 2023 - 5.2K bytes - Viewed (0)