Skip to content

Commit c959c00

Browse files
add check for sshpass installation in test script
1 parent 19382ea commit c959c00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
1212
BASE_PORT=5000
1313
SCEN="$1"
1414

15+
if ! command -v sshpass >/dev/null; then
16+
echo "Error: sshpass is required but not installed. Please install sshpass and try again." >&2
17+
exit 1
18+
fi
19+
1520
run_scenario() {
1621
local scenario="$1"
1722
local testfile="${BASE_DIR}/tests/${scenario}.sh"

0 commit comments

Comments
 (0)