Remove debug output for enrich.py execution in runtest.sh for cleaner logs

This commit is contained in:
Yaro Kasear 2025-04-16 14:08:17 -05:00
parent 32640267b2
commit a989ddcff0

View file

@ -121,7 +121,6 @@ sudo systemctl stop kismet
# Let's enrich the data with passive metrics.
echo "Enriching the data..."
echo "[DEBUG] Running: python3 $SCRIPT_DIRECTORY/enrich.py --csv $TEST_FILE --pcapng \"$KISMET_LOG\" --output \"$ENRICHED_FILE\""
KISMET_LOG=$(find ~/kismet_logs -type f -name "*.pcapng" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2-)
@ -130,6 +129,8 @@ if [ -z "$KISMET_LOG" ] || [ ! -f "$KISMET_LOG" ]; then
exit 1
fi
python3 "$SCRIPT_DIRECTORY/enrich.py" --csv "$TEST_FILE" --pcapng "$KISMET_LOG" --output "$ENRICHED_FILE"
# Final email with attachment(s)
EMAIL_BODY="The test with UID ${BOOT_ID} is complete. Please collect the probe. Data is attached."
EMAIL_SUBJECT="Test ${BOOT_ID} Complete"