]> git.feebdaed.xyz Git - 0xmirror/crun.git/commit
tests: improve TAP skip reason reporting with specific explanations
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 5 Dec 2025 11:03:12 +0000 (11:03 +0000)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 12 Dec 2025 13:31:18 +0000 (14:31 +0100)
commit11a4373264d331ef8c34dbc7834ad3817845eba3
treee4b54820b2a8c839fa2a21e6ce9e480b5ab9aa78
parent0be79fe896a2fa91e2467199a3571298934833aa
tests: improve TAP skip reason reporting with specific explanations

Enhance the TAP test framework to support and display specific skip reasons:
- Modify run_all_tests() to handle (return_code, reason) tuples
- Update tests to return (77, reason) instead of just 77
- Add descriptive skip reasons like "requires root privileges"
- Show skip reasons in TAP output as "#SKIP reason"

This makes test output more informative by explaining why tests
were skipped rather than showing generic skip messages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
16 files changed:
tests/test_bpf_devices.py
tests/test_capabilities.py
tests/test_devices.py
tests/test_limits.py
tests/test_mempolicy.py
tests/test_mounts.py
tests/test_pid.py
tests/test_resources.py
tests/test_rlimits.py
tests/test_seccomp.py
tests/test_start.py
tests/test_time.py
tests/test_tty.py
tests/test_uid_gid.py
tests/test_update.py
tests/tests_utils.py