You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2023/02/21 05:39:13 UTC
[buildstream] 03/04: tests/format/optionarch.py: xfail tests
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/python3.11-bst1
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 3f5ed71e069d627bfdbde2a085c95e9a46658858
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Tue Feb 21 14:34:24 2023 +0900
tests/format/optionarch.py: xfail tests
We cannot monkeypatch os.uname() in a subprocess.
---
tests/format/optionarch.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/format/optionarch.py b/tests/format/optionarch.py
index 4c126aa87..cfe347ed5 100644
--- a/tests/format/optionarch.py
+++ b/tests/format/optionarch.py
@@ -12,6 +12,12 @@ DATA_DIR = os.path.dirname(os.path.realpath(__file__))
# Context manager to override the reported value of `os.uname()`
@contextmanager
def override_uname_arch(name):
+
+ #
+ # Disabling this test since we now run bst in a subprocess during tests.
+ #
+ pytest.xfail("Overriding os.uname() in bst subprocess is unsupported")
+
orig_uname = os.uname
orig_tuple = tuple(os.uname())
override_result = (orig_tuple[0], orig_tuple[1],