diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-06-18 04:58:11 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-07-01 16:50:55 +0000 |
commit | 2fdfa3149be9ae43fb23cda6459e841fb3a90698 (patch) | |
tree | 4a020ae8ba4c707679bd03eb4dbaefa6aba50d32 /tests/test_lib.sh | |
parent | 4fb1c1b0e8ca8510c76d849e3b330c52934bca16 (diff) | |
download | tbdiff-2fdfa3149be9ae43fb23cda6459e841fb3a90698.tar.gz |
Change the temporary directory used for tests to be based on the current directory
Or else the test using extended attributes will fail because extended
attributes are not supported in tmpfs.
Diffstat (limited to 'tests/test_lib.sh')
-rw-r--r-- | tests/test_lib.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_lib.sh b/tests/test_lib.sh index d395ce2..81a6bc7 100644 --- a/tests/test_lib.sh +++ b/tests/test_lib.sh @@ -1,7 +1,9 @@ OK=" OK" FAIL=" FAIL" -TESTDIR=`mktemp -d` +TESTDIR="$PWD/temp" +rm -rf "$TESTDIR" +mkdir "$TESTDIR" IMGFILE=$TESTDIR/tbdiff.img ORIGIN=$TESTDIR/orig TARGET=$TESTDIR/target |