Commit cf7a7338 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

test: add checkskip hook

Although there is the skip() macro, this doesn't actually do anything to skip
the test. I looked into adding a test_skip() function in the zdtm lib, but
there didn't seem an easy race-free way to propagate an exit code up to
run_test in zdtm.sh, so we add the checkskip hook for use in the apparmor test
(e.g. when apparmor isn't avialable in the kernel, or is disabled).
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5fe3a138
......@@ -651,6 +651,11 @@ run_test()
local rst_args=
DUMP_PATH=""
if [ -f "$test".checkskip ] && [ "$test".checkskip ]; then
echo "Skip $test"
return 0
fi
if [ $COMPILE_ONLY -eq 1 ]; then
echo "Compile $test"
make -C $tdir $tname && return 0 || return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment