Add script logging and ensure proper exit in runtest.sh
This commit is contained in:
parent
fc162eb90a
commit
8224deaba1
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,8 @@ SSID_METRICS_FILE="${ENRICHED_FILE%.csv}-ssid-metrics.csv"
|
||||||
FAILURE_LOG="${TEST_FILE%.csv}-failures.log"
|
FAILURE_LOG="${TEST_FILE%.csv}-failures.log"
|
||||||
SCRIPT_START=$(date +%s)
|
SCRIPT_START=$(date +%s)
|
||||||
|
|
||||||
|
script "${TEST_FILE%.csv}-script.log"
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
echo "[+] $*" >&2
|
echo "[+] $*" >&2
|
||||||
}
|
}
|
||||||
|
@ -200,3 +202,5 @@ fi
|
||||||
sudo kill "$SUDO_KEEPALIVE_PID"
|
sudo kill "$SUDO_KEEPALIVE_PID"
|
||||||
SCRIPT_END=$(date +%s)
|
SCRIPT_END=$(date +%s)
|
||||||
log "Full test cycle completed in $((SCRIPT_END - SCRIPT_START)) seconds"
|
log "Full test cycle completed in $((SCRIPT_END - SCRIPT_START)) seconds"
|
||||||
|
|
||||||
|
exit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue