summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-10-22 10:20:59 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-10-29 14:17:17 +0000
commita274fb067d694de967b460df58a8e15d78f2b032 (patch)
tree34c338a981bd2d8b9d3b137067462624b5ed5ad1 /tests
parentbc6bffeff7314add8df839917dcb744d04c90950 (diff)
downloadbuildstream-a274fb067d694de967b460df58a8e15d78f2b032.tar.gz
conftest: more useful multiprocessing print
Print what we set to, not what was set before us. This enables us to test that `spawn` mode is really enabled by looking at output from the tests.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/conftest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 4bd226afb..216c83893 100755
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -141,10 +141,10 @@ def pytest_configure(config):
# possible. Note that some tests implicitly set the start method by using
# multiprocessing. If we wait for bst to do it, it will already be too
# late.
- print(
- "Multiprocessing method:",
- multiprocessing.get_start_method(allow_none=True),
- )
if 'BST_FORCE_START_METHOD' in os.environ:
start_method = os.environ['BST_FORCE_START_METHOD']
multiprocessing.set_start_method(start_method)
+ print(
+ "Multiprocessing method set to:",
+ start_method,
+ )