We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c4ddb8 commit 44c6505Copy full SHA for 44c6505
ci/kokoro/run_install_import_test.sh
@@ -35,7 +35,7 @@ set -o pipefail # Treat the failure of a command in a pipeline as error.
35
36
37
# Create an isolated Python environment.
38
-mkdir venv
+mkdir -p venv
39
virtualenv ./venv
40
source ./venv/bin/activate
41
@@ -45,6 +45,6 @@ pip install --requirement "requirements.txt"
45
python setup.py install
46
47
# Go to another directory and try to import TFMOT.
48
-mkdir /tmp/my_project
49
-pushd /tmp/my_project
+TEMP_PROJECT_DIR=$(mktemp --directory)
+pushd "${TEMP_PROJECT_DIR}"
50
python -c "import tensorflow_model_optimization"
0 commit comments