summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2018-02-02 11:33:36 -0500
committerMathew Robinson <chasinglogic@gmail.com>2018-02-05 09:59:58 -0500
commit243f03c9070080c28930cd62fde243704e84b63c (patch)
tree1266519084e6a5bd858f41020a6e42bf7311693e
parent88e8afb9f01b7e8322537eaab2a30e2834b04eaa (diff)
downloadmongo-243f03c9070080c28930cd62fde243704e84b63c.tar.gz
SERVER-32772 dbtest task should write to task directory
-rw-r--r--etc/evergreen.yml7
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