Skip to content

Commit

Permalink
Fix dmesg check test for recent Fedoras
Browse files Browse the repository at this point in the history
It looks like the error message change has now spread to other Fedoras
too.
  • Loading branch information
happz authored and lukaszachy committed Feb 9, 2024
1 parent fdb16ba commit d9864c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test/check/test-dmesg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ rlJournalStart
if [ "$method" = "container" ]; then
assert_check_result "dmesg as a before-test should fail with containers" "error" "before-test" "harmless"

if rlIsFedora ">=40"; then
if rlIsFedora ">=38"; then
rlAssertGrep "dmesg: read kernel buffer failed: Operation not permitted" "$dump_before"
else
rlAssertGrep "dmesg: read kernel buffer failed: Permission denied" "$dump_before"
Expand All @@ -56,7 +56,7 @@ rlJournalStart
if [ "$method" = "container" ]; then
assert_check_result "dmesg as an after-test should fail with containers" "error" "after-test" "harmless"

if rlIsFedora ">=40"; then
if rlIsFedora ">=38"; then
rlAssertGrep "dmesg: read kernel buffer failed: Operation not permitted" "$dump_after"
else
rlAssertGrep "dmesg: read kernel buffer failed: Permission denied" "$dump_after"
Expand Down

0 comments on commit d9864c8

Please sign in to comment.