summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-08-07 20:52:11 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-05 13:41:48 +0100
commitf160edc257cda7203330cfb644464f09470de32f (patch)
tree9d013b255bd1af50cea881055b634a9379e4acb3
parent441cf15ffbafea7aa6be4cc04bb0085c8d79063e (diff)
Test suite: t-setup-*: Fix lock path
Needs to be not in a directory which may not exist yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--tests/lib6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index 81acceb..c81a792 100644
--- a/tests/lib
+++ b/tests/lib
@@ -398,18 +398,22 @@ t-setup-done () {
t-setup-import () {
local setupname=$1
+ local setupsrc
+ local lock
if [ "x$tmpbase" = x ]; then
# ADTTMP was set on entry to tests/lib, so we
# are not sharing tmp area between tests
setupsrc="$tmp"
+ lock="$tmp/.dummy.lock"
else
setupsrc="$tmpbase/$setupname"
+ lock="$setupsrc.lock"
fi
local simport="$setupsrc/IMPORT"
if ! [ -e "$simport" ]; then
- with-lock-ex -w "$simport.lock" \
+ with-lock-ex -w "$lock" \
xargs -0 -a $tmp/.save-env \
bash -xec '
cd "$1"; shift