mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
[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:
parent
17ddee7011
commit
5d373e7f94
@ -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)" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user