]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: use exitcode 77 for skipped tests
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 Nov 2024 15:38:23 +0000 (15:38 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 21 Nov 2024 04:27:37 +0000 (22:27 -0600)
Using 77 is a de-facto standard for skipped tests that both autotools
and meson support OOTB. Use that instead of EXIT_SUCCESS aka 0.

Semi-recently we removed the only skip = true tests, although with more
tests incoming we're need bound to have a few users.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/246
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/testsuite.c

index 6d1c17593d3c888f8c0b1944add2e3d0165a9537..b1c0f362c9e89da57c04ce10a811f77de255f5d4 100644 (file)
@@ -1018,7 +1018,7 @@ static inline int test_run_parent(const struct test *t, int fdout[2], int fderr[
        if (t->skip) {
                LOG("%sSKIPPED%s: %s\n", ANSI_HIGHLIGHT_YELLOW_ON, ANSI_HIGHLIGHT_OFF,
                    t->name);
-               err = EXIT_SUCCESS;
+               err = 77;
                goto exit;
        }