aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mtest.py2
-rw-r--r--test cases/common/213 tap tests/meson.build1
2 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 817550e..e320d54 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -206,7 +206,7 @@ class TAPParser:
explanation = explanation.strip() if explanation else None
if directive is not None:
directive = directive.upper()
- if directive == 'SKIP':
+ if directive.startswith('SKIP'):
if ok:
yield self.Test(num, name, TestResult.SKIP, explanation)
return
diff --git a/test cases/common/213 tap tests/meson.build b/test cases/common/213 tap tests/meson.build
index c762c73..5221319 100644
--- a/test cases/common/213 tap tests/meson.build
+++ b/test cases/common/213 tap tests/meson.build
@@ -9,5 +9,6 @@ test('xpass', tester, args : ['ok # todo'], should_fail: true, protocol: 'tap')
test('skip', tester, args : ['ok # skip'], protocol: 'tap')
test('partially skipped', tester, args : ['ok 1\nok 2 # skip'], protocol: 'tap')
test('partially skipped (real-world example)', cat, args : [files('issue7515.txt')], protocol: 'tap')
+test('skip comment', tester, args : ['ok # Skipped: with a comment'], protocol: 'tap')
test('skip failure', tester, args : ['not ok # skip'], should_fail: true, protocol: 'tap')
test('no tests', tester, args : ['1..0 # skip'], protocol: 'tap')