hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/selftests/pstore/pstore_tests
....@@ -1,16 +1,16 @@
11 #!/bin/sh
2
+# SPDX-License-Identifier: GPL-2.0-only
23
34 # pstore_tests - Check pstore's behavior before crash/reboot
45 #
56 # Copyright (C) Hitachi Ltd., 2015
67 # Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
78 #
8
-# Released under the terms of the GPL v2.
99
1010 . ./common_tests
1111
1212 prlog -n "Checking pstore console is registered ... "
13
-dmesg | grep -q "console \[pstore"
13
+dmesg | grep -Eq "console \[(pstore|${backend})"
1414 show_result $?
1515
1616 prlog -n "Checking /dev/pmsg0 exists ... "