Serialize the singleton kind fixture across worktrees
This commit is contained in:
parent
c4402985af
commit
7bd5316b1b
1 changed files with 18 additions and 3 deletions
|
|
@ -94,4 +94,14 @@ if [[ "${cleanup_calls[*]}" != "durable coordination oidc target secret" ]]; the
|
|||
exit 1
|
||||
fi
|
||||
|
||||
FIXTURE_LOCK_DIR="$RUNTIME/lock-test"
|
||||
FIXTURE_LOCK_PATH="$FIXTURE_LOCK_DIR/remora-testbed-kind.lock"
|
||||
acquire_fixture_lock
|
||||
if XDG_RUNTIME_DIR="$FIXTURE_LOCK_DIR" bash -c \
|
||||
'source "$1"; acquire_fixture_lock' _ "$ROOT/tests/kind/lib.sh" 9>&-; then
|
||||
printf 'singleton fixture lock admitted a second worktree process\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
exec 9>&-
|
||||
|
||||
printf 'fixture family matrix tests passed\n'
|
||||
|
|
|
|||
Loading…
Reference in a new issue