Fix infinite loop in universe tests
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
e5aa981c28
commit
c1096fbc12
@ -3,8 +3,9 @@ common_setup() {
|
|||||||
load 'node_modules/bats-assert/load'
|
load 'node_modules/bats-assert/load'
|
||||||
|
|
||||||
# Dagger Binary
|
# Dagger Binary
|
||||||
DAGGER="${DAGGER_BINARY:-$(command -v dagger)}"
|
# FIXME: `command -v` must be wrapped in a sub-bash,
|
||||||
export DAGGER
|
# otherwise infinite recursion when DAGGER_BINARY is not set.
|
||||||
|
export DAGGER="${DAGGER_BINARY:-$(bash -c 'command -v dagger')}"
|
||||||
|
|
||||||
# Set the workspace to the universe directory (so tests can run from anywhere)
|
# Set the workspace to the universe directory (so tests can run from anywhere)
|
||||||
UNIVERSE="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
UNIVERSE="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
Reference in New Issue
Block a user