Skip to content

Commit 9962403

Browse files
committed
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
1 parent a08b625 commit 9962403

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/tox_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ shift
1616

1717
install_cmd="pip install"
1818
mydir=$(mktemp -dt "$CLIENT_NAME-tox_install-XXXXXXX")
19+
trap "rm -rf $mydir" EXIT
1920
localfile=$mydir/upper-constraints.txt
2021
if [[ $CONSTRAINTS_FILE != http* ]]; then
2122
CONSTRAINTS_FILE=file://$CONSTRAINTS_FILE
@@ -27,7 +28,6 @@ if [ $requirements_installed -eq 0 ]; then
2728
echo "ALREADY INSTALLED" > /tmp/tox_install.txt
2829
echo "Requirements already installed; using existing package"
2930
elif [ -x "$ZUUL_CLONER" ]; then
30-
# If this is called in a periodic job, these will not be set
3131
echo "ZUUL CLONER" > /tmp/tox_install.txt
3232
pushd $mydir
3333
$ZUUL_CLONER --cache-dir \

0 commit comments

Comments
 (0)