Make the error when a tool not found more obvious

Also ensure kind is installed before logs are exported

Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
irbekrm
2021-07-12 16:31:40 +01:00
parent 073f0dd2b8
commit 57e3418a04
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -26,6 +26,9 @@ SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
export REPO_ROOT="${SCRIPT_ROOT}/.."
source "${SCRIPT_ROOT}/lib/lib.sh"
# Configure PATH to use bazel provided e2e tools
setup_tools
# Ensure a running Kubernetes cluster
"${SCRIPT_ROOT}/ci-cluster.sh"
+1 -1
View File
@@ -59,7 +59,7 @@ setup_tools() {
check_tool() {
tool="$1"
if ! command -v "$tool" &>/dev/null; then
echo "Install $tool or run: export PATH=\"$REPO_ROOT/devel/bin:\$PATH\"" >&2
echo "Fatal error: $tool not found. Install $tool or run: export PATH=\"$REPO_ROOT/devel/bin:\$PATH\"" >&2
exit 1
fi
}