CtsKernelConfigTestCases cts-on-gsi
run cts-on-gsi -m CtsKernelConfigTestCases
will failed on device with kernel not enabled
CONFIG_PSTORE_PMSG. If CONFIG_PSTORE_PMSG not enabled
/dev/pmsg0 device node will not exists, but
echo HELLOWORLD > /dev/pmsg0 will tries to create a file
in /dev folder which will failed.
Since CONFIG_PSTORE_PMSG is not a mandatory config,
add a checking to see if /dev/pmsg0 exist first before
echo/write into it.
Bug: 215043302
Test: On device kernwl without CONFIG_PSTORE_PMSG enabled
run cts-on-gsi -m CtsKernelConfigTestCases
Change-Id: I5009558fc3a853772c27e5967eb49bd44f171ae0
1 file changed