Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed May 6, 2024
1 parent c320831 commit d2985d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ e2e: generate build
sudo bash testdata/test_base.sh ./ptcpdump
sudo bash testdata/test_pname_filter.sh ./ptcpdump
sudo bash testdata/test_pid_filter.sh ./ptcpdump
sudo bash testdata/test_read_pcap.sh ./ptcpdump

.PHONY: clean
clean:
Expand Down
6 changes: 3 additions & 3 deletions testdata/test_read_pcap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ RNAME="${FILE_PREFIX}_pcap.read.txt"

function tcpdump_write() {
which tcpdump || (apt update || true && apt install -y tcpdump)
tcpdump -c 1 -i any -s 0 -n --print -w "${FNAME}" \
'dst host 1.1.1.1 and tcp[tcpflags] = tcp-syn'
sleep 30
timeout 30s tcpdump -c 1 -i any -s 0 -n --print -w "${FNAME}" \
'dst host 1.1.1.1 and tcp[tcpflags] = tcp-syn' | tee "${LNAME}" &
sleep 10
curl -m 10 1.1.1.1 &>/dev/null || true
wait

Expand Down

0 comments on commit d2985d8

Please sign in to comment.