mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-03 05:43:09 +00:00
Fix host mode parsing in run-examples
This commit is contained in:
parent
09085d7df4
commit
aa67d97a6c
@ -73,7 +73,7 @@ while [ "$#" -gt 0 ]; do
|
||||
DEMO_VALIDATORS="${2:-}"; shift 2 ;;
|
||||
-e|--executors)
|
||||
DEMO_EXECUTORS="${2:-}"; shift 2 ;;
|
||||
compose|local|k8s)
|
||||
compose|host|k8s)
|
||||
MODE="$1"; shift ;;
|
||||
*)
|
||||
# Positional run-seconds fallback for legacy usage
|
||||
@ -97,9 +97,9 @@ trap cleanup EXIT
|
||||
|
||||
case "$MODE" in
|
||||
compose) BIN="compose_runner" ;;
|
||||
local) BIN="local_runner" ;;
|
||||
host) BIN="local_runner" ;;
|
||||
k8s) BIN="k8s_runner" ;;
|
||||
*) echo "Unknown mode '$MODE' (use compose|local)" >&2; exit 1 ;;
|
||||
*) echo "Unknown mode '$MODE' (use compose|host|k8s)" >&2; exit 1 ;;
|
||||
esac
|
||||
|
||||
if ! [[ "${RUN_SECS_RAW}" =~ ^[0-9]+$ ]] || [ "${RUN_SECS_RAW}" -le 0 ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user