Skip to content

Commit 47696a9

Browse files
gasbytesdanielinux
authored andcommitted
capture tap0 with tcpdump in the m33mu freertos echo job
1 parent a523b26 commit 47696a9

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/stm32h563-m33mu-freertos.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ jobs:
1717

1818
- name: Run m33mu + DHCP + TCP echo FreeRTOS test
1919
run: /bin/bash tools/scripts/run-m33mu-ci-in-container.sh stm32h563-m33mu-freertos stm32h563_m33mu_echo_freertos
20+
21+
- name: Upload tap0 capture + board logs (DEBUG)
22+
if: always()
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: m33mu-echo-debug
26+
path: |
27+
/tmp/echo.pcap
28+
/tmp/m33mu.log
29+
/tmp/echo.log
30+
if-no-files-found: warn

tools/scripts/run-m33mu-ci-in-container.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ job_echo_freertos() {
410410
echo "==> Running stm32h563_m33mu_echo_freertos"
411411
trap cleanup_runtime EXIT
412412
setup_tap_and_dnsmasq
413+
tcpdump -i tap0 -nn -s0 -U -w /tmp/echo.pcap > /tmp/tcpdump.log 2>&1 &
414+
printf '%s\n' "$!" > /tmp/tcpdump.pid
413415
start_m33mu 180 --quit-on-faults
414416
local ip
415417
ip="$(wait_for_lease 90)"

0 commit comments

Comments
 (0)