Make the framework test bash3 compatible
This commit is contained in:
parent
ccb54d246a
commit
4d4026f5b0
|
|
@ -4,18 +4,17 @@ set -eu
|
||||||
# Use DEBUG=1 ./scripts/run-tests.sh to get debug output
|
# Use DEBUG=1 ./scripts/run-tests.sh to get debug output
|
||||||
[[ -z "${DEBUG:-""}" ]] || set -x
|
[[ -z "${DEBUG:-""}" ]] || set -x
|
||||||
|
|
||||||
declare -a ginkgo_args
|
GINKGO="ginkgo"
|
||||||
|
|
||||||
if [[ -n "${GINKGO_WATCH:-""}" ]] ; then
|
if [[ -n "${GINKGO_WATCH:-""}" ]] ; then
|
||||||
ginkgo_args=( "${ginkgo_args[@]}" "watch" )
|
GINKGO="$GINKGO watch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z ${GINKGO_PERFORMANCE:-""} ]] ; then
|
if [[ -z ${GINKGO_PERFORMANCE:-""} ]] ; then
|
||||||
ginkgo_args=( "${ginkgo_args[@]}" "-skipMeasurements" )
|
GINKGO="$GINKGO -skipMeasurements"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test_framework_dir="$(cd "$(dirname "$0")/.." ; pwd)"
|
test_framework_dir="$(cd "$(dirname "$0")/.." ; pwd)"
|
||||||
|
|
||||||
export KUBE_ASSETS_DIR="${test_framework_dir}/assets/bin"
|
export KUBE_ASSETS_DIR="${test_framework_dir}/assets/bin"
|
||||||
|
|
||||||
ginkgo "${ginkgo_args[@]}" -r "${test_framework_dir}"
|
$GINKGO -r "${test_framework_dir}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue