Per-job tmpdir.

Run every tox job in a new tmpdir that gets removed at the
end of the job.

Fixes bug 1088761.

Change-Id: I756675a1b3b97492c8b55cda93b96719aa9b2c00
Reviewed-on: https://review.openstack.org/17824
Reviewed-by: eglynn
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-12-10 19:53:24 -08:00 committed by Jenkins
parent 82232d747a
commit 3e3abe433b

View File

@ -25,6 +25,8 @@ venv=py$version
export NOSE_WITH_XUNIT=1
export NOSE_WITH_HTML_OUTPUT=1
export NOSE_HTML_OUT_FILE='nose_results.html'
export TMPDIR=`/bin/mktemp -d`
trap "rm -rf $TMPDIR" EXIT
/usr/local/jenkins/slave_scripts/jenkins-oom-grep.sh pre