summaryrefslogtreecommitdiffstats
path: root/fuse/test-fuse.sh
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-08 12:41:54 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-08 12:41:54 +0100
commitf7d18c84dde596699ffc5100fec2cf7b0d582450 (patch)
tree0f1a43165ed98b3d53dc8081bd6a9d456ab2d539 /fuse/test-fuse.sh
parent54ea124b160eda705c96dfc664b4056848887856 (diff)
downloadlibguestfs-f7d18c84dde596699ffc5100fec2cf7b0d582450.tar.gz
libguestfs-f7d18c84dde596699ffc5100fec2cf7b0d582450.tar.xz
libguestfs-f7d18c84dde596699ffc5100fec2cf7b0d582450.zip
build: Set TMPDIR for local testing.
This avoids conflicts with the globally installed libguestfs appliance, or lets us build in multiple local directories at the same time without conflicts.
Diffstat (limited to 'fuse/test-fuse.sh')
-rwxr-xr-xfuse/test-fuse.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuse/test-fuse.sh b/fuse/test-fuse.sh
index 0a429f73..cfa277aa 100755
--- a/fuse/test-fuse.sh
+++ b/fuse/test-fuse.sh
@@ -31,6 +31,10 @@ nr_stages=$(grep "^stage " $0 | wc -l)
# and move to that directory for the initial phase of the script.
top_builddir=$(cd "$top_builddir" > /dev/null; pwd)
+# Set TMPDIR so the appliance doesn't conflict with globally
+# installed libguestfs.
+export TMPDIR=$top_builddir
+
# Set libguestfs up for running locally.
export LIBGUESTFS_PATH="$top_builddir/appliance"