Skip to content

Commit

Permalink
tree: import changes from testing-devel at 9f68d87
Browse files Browse the repository at this point in the history
  • Loading branch information
coreosbot committed Mar 16, 2023
1 parent ca31a62 commit a223eb2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/kola/ignition/data/commonlib.sh
19 changes: 19 additions & 0 deletions tests/kola/ignition/journald-log
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
## kola:
## exclusive: false
set -xeuo pipefail

. $KOLA_EXT_DATA/commonlib.sh

ignitionJournalMsgId="57124006b5c94805b77ce473e92a8aeb"

# See https://github.com/coreos/ignition/pull/958
# for the MESSAGE_ID source. It will track the
# journal messages related to an ignition config
# provided by the user.
num=$(journalctl -o json-pretty MESSAGE_ID=$ignitionJournalMsgId | jq -s ".[] | select(.IGNITION_CONFIG_TYPE == \"user\")" | wc -l)

if [ "$num" -eq 0 ]; then
fatal "Ignition didn't write $ignitionJournalMsgId"
fi
ok "ignition successfully wrote $ignitionJournalMsgId"

0 comments on commit a223eb2

Please sign in to comment.