Add script logging and ensure proper exit in runtest.sh

This commit is contained in:
Yaro Kasear 2025-04-28 14:16:35 -05:00
parent fc162eb90a
commit 8224deaba1

View file

@ -16,6 +16,8 @@ SSID_METRICS_FILE="${ENRICHED_FILE%.csv}-ssid-metrics.csv"
FAILURE_LOG="${TEST_FILE%.csv}-failures.log"
SCRIPT_START=$(date +%s)
script "${TEST_FILE%.csv}-script.log"
log() {
echo "[+] $*" >&2
}
@ -200,3 +202,5 @@ fi
sudo kill "$SUDO_KEEPALIVE_PID"
SCRIPT_END=$(date +%s)
log "Full test cycle completed in $((SCRIPT_END - SCRIPT_START)) seconds"
exit