| .. | .. |
|---|
| 1 | 1 | #!/bin/sh |
|---|
| 2 | +# SPDX-License-Identifier: GPL-2.0-only |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | # pstore_tests - Check pstore's behavior before crash/reboot |
|---|
| 4 | 5 | # |
|---|
| 5 | 6 | # Copyright (C) Hitachi Ltd., 2015 |
|---|
| 6 | 7 | # Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com> |
|---|
| 7 | 8 | # |
|---|
| 8 | | -# Released under the terms of the GPL v2. |
|---|
| 9 | 9 | |
|---|
| 10 | 10 | . ./common_tests |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | prlog -n "Checking pstore console is registered ... " |
|---|
| 13 | | -dmesg | grep -q "console \[pstore" |
|---|
| 13 | +dmesg | grep -Eq "console \[(pstore|${backend})" |
|---|
| 14 | 14 | show_result $? |
|---|
| 15 | 15 | |
|---|
| 16 | 16 | prlog -n "Checking /dev/pmsg0 exists ... " |
|---|