aboutsummaryrefslogtreecommitdiff
path: root/unittests/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/helpers.py')
-rw-r--r--unittests/helpers.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/unittests/helpers.py b/unittests/helpers.py
index d3d1560..7483f51 100644
--- a/unittests/helpers.py
+++ b/unittests/helpers.py
@@ -204,3 +204,11 @@ def get_path_without_cmd(cmd: str, path: str) -> str:
paths.discard(dirname)
path = pathsep.join([str(p) for p in paths])
return path
+
+def xfail_if_jobname(name: str):
+ if os.environ.get('MESON_CI_JOBNAME') == name:
+ return unittest.expectedFailure
+
+ def wrapper(func):
+ return func
+ return wrapper