[TEST] Fix SystemD test on Fedora 24

The journalctl command on Fedora24 returns an exit code 0 if no log entry exist in the journal, whereas other distributions return 1.
This commit is contained in:
Tanguy Leroux 2016-09-14 21:14:30 +02:00
parent 17ddee7011
commit 5d373e7f94
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ setup() {
# Verifies that no new entries in journald have been added
# since the last start
run journalctl _SYSTEMD_UNIT=elasticsearch.service --since "$since"
[ "$status" -eq 1 ]
result="$(journalctl _SYSTEMD_UNIT=elasticsearch.service --since "$since" --output cat | wc -l)"
[ "$result" -eq "0" ]
}
@test "[SYSTEMD] start (running)" {