Skip to content

Commit

Permalink
ci: print iptables
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Dec 18, 2024
1 parent 6e7ae07 commit 7b3ca2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
ping6 -c 4 ::1 || { echo "::1 is not reachable"; exit 1; }
- name: Run unit tests
- name: Run Integration test
run: |
cmake -S . -B build -DUA2F_BUILD_TESTS=OFF -DUA2F_ENABLE_UCI=OFF -DUA2F_ENABLE_ASAN=ON ${{ matrix.cache }}
cmake --build build
Expand Down
3 changes: 3 additions & 0 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def setup_iptables():
os.system(f"iptables -A OUTPUT -p tcp --dport {PORT} -j NFQUEUE --queue-num 10010")
os.system(f"ip6tables -A OUTPUT -p tcp --dport {PORT} -j NFQUEUE --queue-num 10010")

os.system("iptables -L -v")
os.system("ip6tables -L -v")


def cleanup_iptables():
os.system(f"iptables -D OUTPUT -p tcp --dport {PORT} -j NFQUEUE --queue-num 10010")
Expand Down

0 comments on commit 7b3ca2d

Please sign in to comment.