Skip to content

Commit f796338

Browse files
r41k0uclaude
andcommitted
Tests: Silence deprecation warnings in test-cov and test-verifier
c2de7da added -W ignore::DeprecationWarning to the 'test' target only, so 'make test-cov' and 'make test-verifier' still drown in warnings from the generated vmlinux.py. Also correct the test-verifier note: the suite does not run pytest under sudo, tests/framework/verifier.py shells out to 'sudo bpftool' itself. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent c2de7da commit f796338

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ test:
1010
pytest tests/ -W ignore::DeprecationWarning -v --tb=short -m "not verifier"
1111

1212
test-cov:
13-
pytest tests/ -v --tb=short -m "not verifier" \
13+
pytest tests/ -W ignore::DeprecationWarning -v --tb=short -m "not verifier" \
1414
--cov=pythonbpf --cov-report=term-missing --cov-report=html
1515

1616
test-verifier:
17-
@echo "NOTE: verifier tests require sudo and bpftool. Uses sudo .venv/bin/python3."
18-
pytest tests/test_verifier.py -v --tb=short -m verifier
17+
@echo "NOTE: verifier tests shell out to 'sudo bpftool'; run 'sudo -v' first so"
18+
@echo " the timestamp does not lapse mid-run. bpftool must be installed."
19+
pytest tests/test_verifier.py -W ignore::DeprecationWarning -v --tb=short -m verifier
1920

2021
all: clean install
2122

0 commit comments

Comments
 (0)