diff --git a/e2e_tests/common_scripts.sh b/e2e_tests/common_scripts.sh index d79dda5e..95ec04c1 100644 --- a/e2e_tests/common_scripts.sh +++ b/e2e_tests/common_scripts.sh @@ -1,12 +1,12 @@ -#!/bin/bash +#!/bin/sh -function log() { +log() { timestamp=$(date +"%Y-%m-%d %H:%M:%S") message="$*" echo "$timestamp: $message" } -function wait_for_healthz() { +wait_for_healthz() { local healthz_url="$1" local timeout_seconds="${2:-30}" # Default timeout of 30 seconds local sleep_between="${3:-1}" # Default sleep of 1 seconds diff --git a/e2e_tests/run_e2e_tests.sh b/e2e_tests/run_e2e_tests.sh index 88770993..6adebc52 100644 --- a/e2e_tests/run_e2e_tests.sh +++ b/e2e_tests/run_e2e_tests.sh @@ -1,3 +1,4 @@ +#/bin/sh # if any of the commands fail, the script will exit set -e