diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 20:40:13 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-02 22:09:25 -0400 |
| commit | 4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e (patch) | |
| tree | 0fe95082a27a63c51eae980518f6c096d9780620 /unittests/helpers.py | |
| parent | 877d5ea8e02c13bb606969d33d0491cfd4e08275 (diff) | |
| download | meson-4e17d60d47357b7e3a4fd772ce031cd7cd7bc57e.tar.gz | |
tests: add workarounds for python brokenness on Windows
msys2 is broken only on clang, due to -Werror issues in the python
headers as patched by msys2.
MSVC is simply weird... due to the use of an unversioned platlib/purelib
directory, the python2 and python3 components overlap.
Diffstat (limited to 'unittests/helpers.py')
| -rw-r--r-- | unittests/helpers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unittests/helpers.py b/unittests/helpers.py index d3d156056..7483f51b7 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 |
