fix(smoke): capture arp-scan output instead of piping into awk #8
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix-smoke-pipefail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When host-networking finally gave arp-scan a real LAN to scan, the
first MAC-match emitted a line, awk hit its
exitclause, closed thepipe, and arp-scan died from SIGPIPE (exit 141). With
set -o pipefailactive, that killed the whole smoke-vm.sh run immediately after
"==> starting VM" — no IP discovery, no curl, no prune.
Fix: capture arp-scan's output into a variable first, then let awk
parse a here-string. Same treatment for the
ip neigh showfallback.No pipe, no pipefail cascade.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com