Skip to content
Commit 4228a996 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

selftests/powerpc: Skip energy_scale_info test on older firmware



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: 57201d65 ("selftest/powerpc: Add PAPR sysfs attributes sniff test")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220619233103.2666171-1-mpe@ellerman.id.au
parent 00bcb550
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment