Tests: live kernel: no plan printed when non-root
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 10 Dec 2021 19:10:13 +0000 (14:10 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Dec 2021 04:46:44 +0000 (23:46 -0500)
The live kernel test does not produce a valid TAP output when
skipping due to not running the test as root.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I4a10de494260084216ddb1b8f4ee27a546c4d8ed

tests/regression/tools/live/test_kernel

index 25cb0eda17d6dabe3b4846d6ba2daba331a0942b..f621e750dba0af6f675ee1f60d6ce129d31891c9 100755 (executable)
@@ -43,7 +43,7 @@ function clean_live_tracing()
 if [ "$(id -u)" == "0" ]; then
        isroot=1
 else
-       echo "Root access is needed. Skipping all tests."
+       plan_skip_all "Root access is needed. Skipping all tests."
        exit 0
 fi
 
This page took 0.025311 seconds and 4 git commands to generate.