diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-08-07 20:52:11 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-09-05 13:41:48 +0100 |
commit | f160edc257cda7203330cfb644464f09470de32f (patch) | |
tree | 9d013b255bd1af50cea881055b634a9379e4acb3 /tests/lib | |
parent | 441cf15ffbafea7aa6be4cc04bb0085c8d79063e (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>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |