Commit 36aedc3b authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

zdtm.py: fix checkskip logic

Fix checkskip logic, also emit a clearer reason when checkskip fails as to
why the test was skipped.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 5219c5a3
......@@ -1078,7 +1078,7 @@ def self_checkskip(tname):
chs = tname + '.checkskip'
if os.access(chs, os.X_OK):
ch = subprocess.Popen([chs])
return ch.wait() == 0 and False or True
return not ch.wait() == 0
return False
......@@ -1159,7 +1159,7 @@ def run_tests(opts):
continue
if self_checkskip(t):
l.skip(t, "self")
l.skip(t, "checkskip failed")
continue
if opts['user']:
......
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