From 8224deaba1832660f54605c4b3b8aea5be0a93c4 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Mon, 28 Apr 2025 14:16:35 -0500 Subject: [PATCH] Add script logging and ensure proper exit in runtest.sh --- runtest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtest.sh b/runtest.sh index de18820..ceab250 100755 --- a/runtest.sh +++ b/runtest.sh @@ -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