]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: honor NFT_TEST_FAIL_ON_SKIP variable to fail on any skipped tests
authorThomas Haller <thaller@redhat.com>
Mon, 18 Sep 2023 20:27:07 +0000 (22:27 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 21 Sep 2023 09:59:10 +0000 (11:59 +0200)
commit7d803cd5fbf70ca55b213cd4a7fa2c624482c3ca
tree4ebcfcadd4095730e7665457012c2501915564cf
parenta44ea3e5675078954740c54ec0400bb6d56397b2
tests/shell: honor NFT_TEST_FAIL_ON_SKIP variable to fail on any skipped tests

The test suite should pass with various kernels and build
configurations. Of course, that means, that some tests will be
gracefully skipped, and we don't treat that as an overall failure.

However, it should be possible to run a specific kernel (net-next?) and
build configuration, where we expect that all tests pass.

Add an option to fail the run, if any tests were skipped. This is to
ensure that we don't have broken tests that never pass.

This will make more sense with automated CI is running, to enable on a
test system and ensure that at least on that system, all tests pass.

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/run-tests.sh