aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-08-08 00:26:11 +0400
committerJussi Pakkanen <jpakkane@gmail.com>2020-08-08 01:25:05 +0300
commit8e98819b0699d3277197148dc7bcc2c2c7e528b6 (patch)
tree1b33bd25292b2be2369c2a9202c94a44153cf156 /mesonbuild/mtest.py
parenta65ef70b7deac0115895278e3965e12bdf429182 (diff)
downloadmeson-8e98819b0699d3277197148dc7bcc2c2c7e528b6.zip
meson-8e98819b0699d3277197148dc7bcc2c2c7e528b6.tar.gz
meson-8e98819b0699d3277197148dc7bcc2c2c7e528b6.tar.bz2
mtest: fix skipping with various prefixes
According to the specification: https://testanything.org/tap-specification.html#skipping-tests The harness should report the text after # SKIP\S*\s+ as a reason for skipping. (it's not exactly like the TODO directive, the phrasing/presentation of the spec could be improved).
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py2
1 files changed, 1 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