aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/harness.c
diff options
context:
space:
mode:
authorMichael Ellerman2014-06-10 22:23:09 +1000
committerBenjamin Herrenschmidt2014-06-11 17:03:54 +1000
commit33b4819f3b93bbcb934e02cbc64ff3c5e9d0149b (patch)
tree4d8e4d8fd1196efbb29d9b208501d746d9565c7d /tools/testing/selftests/powerpc/harness.c
parentde506f73dd40cc1f3ba3312bd454e06f2803335b (diff)
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>
Diffstat (limited to 'tools/testing/selftests/powerpc/harness.c')
-rw-r--r--tools/testing/selftests/powerpc/harness.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/harness.c b/tools/testing/selftests/powerpc/harness.c
index 532ddff8a669..8ebc58a09311 100644
--- a/tools/testing/selftests/powerpc/harness.c
+++ b/tools/testing/selftests/powerpc/harness.c
@@ -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;
}