--- zzzz-none-000/linux-5.4.213/tools/testing/selftests/pstore/pstore_tests 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/tools/testing/selftests/pstore/pstore_tests 2024-08-14 09:02:22.000000000 +0000 @@ -13,9 +13,8 @@ dmesg | grep -q "console \[pstore" show_result $? -prlog -n "Checking /dev/pmsg0 exists ... " -test -e /dev/pmsg0 -show_result $? +prlog -n "Checking /dev/pmsg files exist ... " +check_files_exist /dev/pmsg prlog -n "Writing unique string to /dev/pmsg0 ... " if [ -e "/dev/pmsg0" ]; then @@ -27,4 +26,13 @@ rc=1 fi +last_devpmsg=`ls -v /dev/pmsg* | tail -n1` +prlog -n "Writing unique string to the last /dev/pmsgN " +if [ "$last_devpmsg" = "/dev/pmsg0" ]; then + prlog "... No multiple /dev/pmsg* exists. We skip this testcase." +else + prlog -n "(${last_devpmsg}) ... " + echo "${TEST_STRING_PATTERN}""$UUID" > ${last_devpmsg} + show_result $? +fi exit $rc