- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 228 for mkdtemp (0.13 sec)
-
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) -
hack/update-openapi-spec.sh
fi unset APISERVER_PID kube::etcd::cleanup kube::log::status "Clean up complete" } trap cleanup EXIT SIGINT TMP_DIR=${TMP_DIR:-$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")} ETCD_HOST=${ETCD_HOST:-127.0.0.1} ETCD_PORT=${ETCD_PORT:-2379} API_PORT=${API_PORT:-8050} API_HOST=${API_HOST:-127.0.0.1} API_LOGFILE=${API_LOGFILE:-${TMP_DIR}/openapi-api-server.log}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 12 17:29:14 UTC 2024 - 5.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_download_concurrent_read.txt
// // run uses a different temporary module cache in each iteration so that we // don't need to clean the cache or synchronize closing files after each // iteration. func run() (err error) { tmpDir, err := os.MkdirTemp("", "") if err != nil { return err } defer func() { if rmErr := os.RemoveAll(tmpDir); err == nil && rmErr != nil { err = rmErr } }() for i := 0; i < 10; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.5K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/configfile_test.go
// is too old schedulerConfigVersionTooOld = ` apiVersion: kubescheduler.config.k8s.io/v1alpha1 kind: KubeSchedulerConfiguration ` ) func TestLoadConfigFromFile(t *testing.T) { tmpDir, err := os.MkdirTemp("", "scheduler-configs") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpDir) correctConfigFile := filepath.Join(tmpDir, "correct_config.yaml") if err := os.WriteFile(correctConfigFile,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 22 13:43:42 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certlist_test.go
} if _, ok := certTree[selfSigned]; !ok { t.Error("Expected selfSigned to be present in tree, but missing") } } func TestCreateCertificateChain(t *testing.T) { dir, err := os.MkdirTemp("", t.Name()) if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) ic := &kubeadmapi.InitConfiguration{ NodeRegistration: kubeadmapi.NodeRegistrationOptions{ Name: "test-node", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 8.8K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
for _, d := range resp.Devices { devices = append(devices, *d) } m.callback(r, devices) } func tmpSocketDir() (socketDir, socketName, pluginSocketName string, err error) { socketDir, err = os.MkdirTemp("", "device_plugin") if err != nil { return } socketName = filepath.Join(socketDir, "server.sock") pluginSocketName = filepath.Join(socketDir, "device-plugin.sock") os.MkdirAll(socketDir, 0755) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0) -
release/downloadIstioCtl.sh
;; esac download_failed () { printf "Download failed, please make sure your ISTIO_VERSION is correct and verify the download URL exists!" exit 1 } # Downloads the istioctl binary archive. tmp=$(mktemp -d /tmp/istioctl.XXXXXX) NAME="istioctl-${ISTIO_VERSION}" URL="https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istioctl-${ISTIO_VERSION}-${OSEXT}.tar.gz"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 14:11:30 UTC 2024 - 4.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/resetconfiguration_test.go
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" ) func TestLoadResetConfigurationFromFile(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) var tests = []struct { name string fileContents string expectErr bool }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 06 13:21:52 UTC 2023 - 3.4K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubelet/config_test.go
func TestApplyKubeletConfigPatches(t *testing.T) { var ( input = []byte("bar: 0\nfoo: 0\n") patch = []byte("bar: 1\n") expectedOutput = []byte("bar: 1\nfoo: 0\n") ) dir, err := os.MkdirTemp("", "patches") if err != nil { t.Fatalf("could not create temp dir: %v", err) } defer os.RemoveAll(dir) if err := os.WriteFile(filepath.Join(dir, "kubeletconfiguration.yaml"), patch, 0644); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 02 12:34:30 UTC 2024 - 3K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/upgradeconfiguration_test.go
t.Fatalf("DocMapToUpgradeConfiguration returned unexpected diff (-want,+got):\n%s", diff) } }) } } func TestLoadUpgradeConfigurationFromFile(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir: %v", err) } defer func() { if err := os.RemoveAll(tmpdir); err != nil { t.Fatalf("Couldn't remove tmpdir: %v", err) } }()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 08:34:39 UTC 2024 - 11.8K bytes - Viewed (0)