summaryrefslogtreecommitdiff
path: root/src/journal/test-journal.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-09-12 21:52:31 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-13 12:07:34 +0200
commit964bc0ad600f6d9fb90ed82f6a302988e843336d (patch)
tree67b22222fa9845325909b36041d465e2f9df6570 /src/journal/test-journal.c
parent08d541ca06c75c8539206c60eba975fb3ecd6460 (diff)
downloadsystemd-964bc0ad600f6d9fb90ed82f6a302988e843336d.tar.gz
test: log when skipping tests in more cases
Follow-up for the previous commit.
Diffstat (limited to 'src/journal/test-journal.c')
-rw-r--r--src/journal/test-journal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/test-journal.c b/src/journal/test-journal.c
index 69bdff6760..3cdaad4b40 100644
--- a/src/journal/test-journal.c
+++ b/src/journal/test-journal.c
@@ -239,8 +239,10 @@ int main(int argc, char *argv[]) {
arg_keep = argc > 1;
/* journal_file_open requires a valid machine id */
- if (access("/etc/machine-id", F_OK) != 0)
+ if (access("/etc/machine-id", F_OK) != 0) {
+ log_info("/etc/machine-id not found, skipping tests.");
return EXIT_TEST_SKIP;
+ }
test_non_empty();
test_empty();