diff options
-rw-r--r-- | etc/evergreen.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index f2f3e2a49be..b7955409f47 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -420,6 +420,13 @@ functions: set -o errexit set -o verbose + # Set the TMPDIR environment variable to be a directory in the task's working + # directory so that temporary files created by processes spawned by resmoke.py get + # cleaned up after the task completes. This also ensures the spawned processes + # aren't impacted by limited space in the mount point for the /tmp directory. + export TMPDIR="${workdir}/tmp" + mkdir -p $TMPDIR + # check if virtualenv is set up if [ -d "venv" ]; then if [ "Windows_NT" = "$OS" ]; then |