diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-12 21:52:31 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-09-13 12:07:34 +0200 |
commit | 964bc0ad600f6d9fb90ed82f6a302988e843336d (patch) | |
tree | 67b22222fa9845325909b36041d465e2f9df6570 /src/journal/test-journal.c | |
parent | 08d541ca06c75c8539206c60eba975fb3ecd6460 (diff) | |
download | systemd-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.c | 4 |
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(); |