From d6fc13395fafcc28e730372ea5880e2079e417c7 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 10 Sep 2025 09:52:54 -0600 Subject: [PATCH] Add check for jq present in test scripts that use it --- tests/deploy/run-deploy-test.sh | 8 ++++++++ tests/k8s-deploy/run-deploy-test.sh | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/tests/deploy/run-deploy-test.sh b/tests/deploy/run-deploy-test.sh index c713b13..1e820ed 100755 --- a/tests/deploy/run-deploy-test.sh +++ b/tests/deploy/run-deploy-test.sh @@ -3,6 +3,14 @@ set -e if [ -n "$STACK_SCRIPT_DEBUG" ]; then set -x fi + +# Check for required utilities +if ! command -v jq &> /dev/null; then + echo "Error: jq is not installed." + echo "Please install jq to run this test script." + exit 1 +fi + # Dump environment variables for debugging echo "Environment variables:" env diff --git a/tests/k8s-deploy/run-deploy-test.sh b/tests/k8s-deploy/run-deploy-test.sh index d9b896d..8bbecc2 100755 --- a/tests/k8s-deploy/run-deploy-test.sh +++ b/tests/k8s-deploy/run-deploy-test.sh @@ -5,6 +5,13 @@ if [ -n "$STACK_SCRIPT_DEBUG" ]; then set -x fi +# Check for required utilities +if ! command -v jq &> /dev/null; then + echo "Error: jq is not installed." + echo "Please install jq to run this test script." + exit 1 +fi + # Dump environment variables for debugging echo "Environment variables:" env