summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2016-08-28 08:42:07 +0200
committerAndreas Jaeger <aj@suse.com>2016-08-28 08:48:23 +0200
commit9962403d3c52c96ef02e110a056c4a0c21bc5ab7 (patch)
treeffdf329678e27337a0c6d1b074982a15c3a1634c /tools
parenta08b62523fa634d5a61d85d1e9f3b89ab2d4a14e (diff)
downloadpython-openstackclient-9962403d3c52c96ef02e110a056c4a0c21bc5ab7.tar.gz
Cleanup after install
Tox tests are run on developer machines and on long lived slaves. We should not leave lots of directories like /tmp/python-openstackclient-tox_install-sdnltRu lying around. Instead delete the temporary directory after our run. Remove also an obsolete comment. Change-Id: I939eae82dba3287fd4e4086128ebf4609a0e0770
Diffstat (limited to 'tools')
-rwxr-xr-xtools/tox_install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tox_install.sh b/tools/tox_install.sh
index 53acc4d5..4af3be16 100755
--- a/tools/tox_install.sh
+++ b/tools/tox_install.sh
@@ -16,6 +16,7 @@ shift
install_cmd="pip install"
mydir=$(mktemp -dt "$CLIENT_NAME-tox_install-XXXXXXX")
+trap "rm -rf $mydir" EXIT
localfile=$mydir/upper-constraints.txt
if [[ $CONSTRAINTS_FILE != http* ]]; then
CONSTRAINTS_FILE=file://$CONSTRAINTS_FILE
@@ -27,7 +28,6 @@ if [ $requirements_installed -eq 0 ]; then
echo "ALREADY INSTALLED" > /tmp/tox_install.txt
echo "Requirements already installed; using existing package"
elif [ -x "$ZUUL_CLONER" ]; then
- # If this is called in a periodic job, these will not be set
echo "ZUUL CLONER" > /tmp/tox_install.txt
pushd $mydir
$ZUUL_CLONER --cache-dir \