Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for mkstemp (0.14 sec)

  1. hack/run-prometheus-on-etcd-scrapes.sh

    scrapes_file="$1"
    
    if ! [[ -r "$scrapes_file" ]]; then
        echo "$0: $scrapes_file is not a readable file" >&2
        exit 2
    fi
    
    SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")
    
    CONFIG="/tmp/$(cd /tmp && mktemp config.XXXXXX)"
    UNPACKDIR="/tmp/$(cd /tmp && mktemp -d unpack.XXXXXX)"
    SERVER_PID=""
    
    cleanup_prom() {
        rm -f "$CONFIG"
        rm -rf "$UNPACKDIR"
        if [[ -n "$SERVER_PID" ]]; then
    	kill "$SERVER_PID"
        fi
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 08 20:28:05 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_testing_databases.py

    import pytest
    
    from ...utils import needs_pydanticv1
    
    
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_testing_dbs(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./test.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 788 bytes
    - Viewed (0)
  3. cluster/gce/gci/mounter/stage-upload.sh

    MOUNTER_ACI_IMAGE=gci-mounter-${MOUNTER_VERSION}.aci
    MOUNTER_GCS_DIR=gs://kubernetes-release/gci-mounter/
    
    TMPDIR=/tmp
    # Setup a working directory
    DOWNLOAD_DIR=$(mktemp --tmpdir=${TMPDIR} -d gci-mounter-build.XXXXXXXXXX)
    
    # Setup a staging directory
    STAGING_DIR=$(mktemp --tmpdir=${TMPDIR} -d gci-mounter-staging.XXXXXXXXXX)
    ACI_DIR=${STAGING_DIR}/gci-mounter
    CWD=${PWD}
    
    # Cleanup the temporary directories
    cleanup() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 23 18:27:20 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_compile_tempfile.txt

    [short] skip
    
    # Ensure that the target of 'go build -o' can be an existing, empty file so that
    # its name can be reserved using os.CreateTemp or the 'mktemp` command.
    
    go build -o empty-file$GOEXE main.go
    
    -- main.go --
    package main
    func main() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 271 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_testing_databases_py39.py

    from ...utils import needs_py39, needs_pydanticv1
    
    
    @needs_py39
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./test.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 822 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_testing_databases_py310.py

    
    @needs_py310
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_testing_dbs_py39(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./test.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 825 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh

    # limitations under the License.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
    DIFFROOT="${SCRIPT_ROOT}/pkg"
    TMP_DIFFROOT="$(mktemp -d -t "$(basename "$0").XXXXXX")/pkg"
    
    cleanup() {
      rm -rf "${TMP_DIFFROOT}"
    }
    trap "cleanup" EXIT SIGINT
    
    cleanup
    
    mkdir -p "${TMP_DIFFROOT}"
    cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 05 23:05:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. src/cmd/compile/profile.sh

    # license that can be found in the LICENSE file.
    
    # This script collects a CPU profile of the compiler
    # for building all targets in std and cmd, and puts
    # the profile at cmd/compile/default.pgo.
    
    dir=$(mktemp -d)
    cd $dir
    seed=$(date)
    
    for p in $(go list std cmd); do
    	h=$(echo $seed $p | md5sum | cut -d ' ' -f 1)
    	echo $p $h
    	go build -o /dev/null -gcflags=-cpuprofile=$PWD/prof.$h $p
    done
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 17:31:10 UTC 2023
    - 588 bytes
    - Viewed (0)
  9. hack/lib/etcd.sh

      printf '%s\n' "${@}" | awk -F . '{ printf("%d%03d%03d\n", $1, $2, $3) }'
    }
    
    kube::etcd::start() {
      # validate before running
      kube::etcd::validate
    
      # Start etcd
      ETCD_DIR=${ETCD_DIR:-$(mktemp -d 2>/dev/null || mktemp -d -t test-etcd.XXXXXX)}
      if [[ -d "${ARTIFACTS:-}" ]]; then
        ETCD_LOGFILE="${ARTIFACTS}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$"
      else
        ETCD_LOGFILE=${ETCD_LOGFILE:-"/dev/null"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. hack/update-mocks.sh

    # pick a tempfile path for writing to
    tmp=$(mktemp)
    kube::util::trap_add "rm -f ${tmp:?}" EXIT
    
    git_grep -l -z "${GENERATED_MOCK_FILE_REGEX}" | xargs -0 rm -f
    
    echo 'executing go generate command on below files'
    
    git_grep -l -z "//go:generate mockgen" | while read -r -d $'\0' file; do
      echo "- ${file}"
      temp_file_name="$(kube::realpath "$(mktemp -t "$(basename "$0").XXXXXX")")"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top