1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00
Files
fedora-coreos-config/tests/kola/logging/printk

17 lines
372 B
Bash
Executable File

#!/bin/bash
## kola:
## exclusive: false
# Verify default console log level; xref https://github.com/coreos/fedora-coreos-tracker/issues/1244
set -xeuo pipefail
. $KOLA_EXT_DATA/commonlib.sh
printk=$(cat /proc/sys/kernel/printk)
if ! [[ "$printk" =~ ^4 ]]; then
fatal "printk: expected console log level 4, found ${printk}"
fi
ok "Found expected printk value "