From: Emil Velikov Date: Fri, 15 Nov 2024 15:38:23 +0000 (+0000) Subject: testsuite: use exitcode 77 for skipped tests X-Git-Tag: v34~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49e54bf2ada8d449b61332925544d5fbb3c1378a;p=thirdparty%2Fkmod.git testsuite: use exitcode 77 for skipped tests 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 Link: https://github.com/kmod-project/kmod/pull/246 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 6d1c1759..b1c0f362 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -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; }