rm -rf $TRACE_PATH
}
-# Need root access for kernel tracing.
-if [ "$(id -u)" == "0" ]; then
- isroot=1
-else
- plan_skip_all "Root access is needed. Skipping all tests."
+check_skip_kernel_test &&
+{
+ plan_skip_all "Skipping all tests."
exit 0
-fi
+}
modprobe lttng-test