Michael Ellerman 21c09fb18c selftests/powerpc: Skip energy_scale_info test on older firmware
[ Upstream commit 4228a996b072d36f3baafb4afdc2d2d66d2cbadf ]

Older machines don't have the firmware feature that enables the code
this test is testing. Skip the test if the sysfs directory doesn't
exist. Also use the FAIL_IF() macro to provide more verbose error
reporting if an error is encountered.

Fixes: 57201d657eb7 ("selftest/powerpc: Add PAPR sysfs attributes sniff test")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220619233103.2666171-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 15:15:47 +02:00
..
2022-03-31 11:59:03 -07:00
2022-03-31 11:59:03 -07:00
2022-08-17 15:15:40 +02:00
2022-05-24 16:19:30 -07:00