summaryrefslogtreecommitdiff
path: root/src/shared/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/tests.c')
-rw-r--r--src/shared/tests.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/tests.c b/src/shared/tests.c
index cb5b7b6dea..884f34bc72 100644
--- a/src/shared/tests.c
+++ b/src/shared/tests.c
@@ -9,6 +9,7 @@
#include "alloc-util.h"
#include "env-util.h"
#include "fileio.h"
+#include "log.h"
#include "path-util.h"
#include "strv.h"
#include "tests.h"
@@ -89,3 +90,9 @@ bool slow_tests_enabled(void) {
log_warning_errno(r, "Cannot parse $SYSTEMD_SLOW_TESTS, ignoring.");
return SYSTEMD_SLOW_TESTS_DEFAULT;
}
+
+int log_tests_skipped(const char *message) {
+ log_notice("%s: %s, skipping tests.",
+ program_invocation_short_name, message);
+ return EXIT_TEST_SKIP;
+}