diff options
Diffstat (limited to 'buildutil')
-rwxr-xr-x | buildutil/tap-test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/buildutil/tap-test b/buildutil/tap-test index d2dba0f4..af42b623 100755 --- a/buildutil/tap-test +++ b/buildutil/tap-test @@ -1,12 +1,14 @@ #! /bin/bash # -# Run a test in tap mode, ensuring we have a temporary directory. +# Run a test in tap mode, ensuring we have a temporary directory. We +# always use /var/tmp because we might want to use user xattrs, which +# aren't available on tmpfs. # # The test binary is passed as $1 srcd=$(cd $(dirname $1) && pwd) bn=$(basename $1) -tempdir=$(mktemp -d /tmp/tap-test.XXXXXX) +tempdir=$(mktemp -d /var/tmp/tap-test.XXXXXX) touch ${tempdir}/.testtmp function cleanup () { if test -n "${TEST_SKIP_CLEANUP:-}"; then |