]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
test: exit with code 77 if test is skipped
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 26 Nov 2025 15:17:16 +0000 (16:17 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Wed, 26 Nov 2025 20:47:31 +0000 (15:47 -0500)
commitf1208145f60b3ed09b6677cbd8d673faa5388012
tree02f472d17ebbaeed104a9f2e8eda1f7205b5794e
parent0f91c6ceb599ba3844a717fdf6390b7c6ba069a1
test: exit with code 77 if test is skipped

Exiting tests that are skipped with exit code 0 will hide that the test
environment probably miss some tools. That can reduce the test coverage
without anybody noting it.

Therefore exit tests that are skipped with exit code 77. In case tests
are intentionally expected to be skipped, an environment variable could
be introduce to exit with code 0 again.
test/test-functions