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 05:31:09 +0000 (00:31 -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 58fe34936d287e46b29fec76594a7944b7b7771b..b622b52143d3bc4a740fb9e7a1ade7739dc60f19 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.025283 seconds and 4 git commands to generate.