selftests/powerpc: Add support for skipping tests
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
de506f73dd
commit
33b4819f3b
@@ -105,7 +105,10 @@ int test_harness(int (test_function)(void), char *name)
|
||||
|
||||
rc = run_test(test_function, name);
|
||||
|
||||
test_finish(name, rc);
|
||||
if (rc == MAGIC_SKIP_RETURN_VALUE)
|
||||
test_skip(name);
|
||||
else
|
||||
test_finish(name, rc);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user