aboutsummaryrefslogtreecommitdiff
path: root/meson_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'meson_test.py')
-rwxr-xr-xmeson_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson_test.py b/meson_test.py
index 533cd87..51a7db6 100755
--- a/meson_test.py
+++ b/meson_test.py
@@ -99,7 +99,8 @@ def run_single_test(wrap, test):
duration = endtime - starttime
stdo = stdo.decode()
stde = stde.decode()
- if p.returncode == 0:
+ if (not test.should_fail and p.returncode == 0) or \
+ (test.should_fail and p.returncode != 0):
res = 'OK'
else:
res = 'FAIL'