summaryrefslogtreecommitdiff
path: root/buildutil
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-08-31 13:55:44 +0100
committerAlexander Larsson <alexander.larsson@gmail.com>2017-08-31 16:22:18 +0200
commit6e46dc8076a1eeaaab1c0dbdabb86f63bb3e1c3e (patch)
treefbb574e53bc3d8733ca71124906562b4b85d46ee /buildutil
parent2cfeef6bcca7bf03dc954bede6c599ed35573945 (diff)
downloadflatpak-6e46dc8076a1eeaaab1c0dbdabb86f63bb3e1c3e.tar.gz
Revert "tests: Don't force use of /var/tmp"
This reverts commit 0648452fca5cffaeec47c415f9e040ffad7df9c5. Unfortunately, it appears we still need xattrs on the system cache. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'buildutil')
-rwxr-xr-xbuildutil/tap-test6
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