commit:     7c5a1f57386511558e7c9b60e6debaea42a1135b
Author:     Oskari Pirhonen <xxc3ncoredxx <AT> gmail <DOT> com>
AuthorDate: Tue Oct 31 04:37:10 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 11 02:55:29 2023 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=7c5a1f57

sr.ht ci: add some pytest options

At the time of writing, sourcehut VM's have 2 cores. Utilizing
pytest-xdist unsurprisingly cuts the time in half :)

Signed-off-by: Oskari Pirhonen <xxc3ncoredxx <AT> gmail.com>
Closes: https://github.com/gentoo/portage/pull/1175
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .builds/ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.builds/ci.yml b/.builds/ci.yml
index cda3b6e072..6d04fdff9c 100644
--- a/.builds/ci.yml
+++ b/.builds/ci.yml
@@ -16,6 +16,15 @@ environment:
     # - '3.12'
     # Testing PyPy is currently broken, see bug #903709
     # - 'pypy3'
+  PYTEST_ADDOPTS: >
+    -vv
+    -ra
+    -l
+    -o console_output_style=count
+    -o log_cli=true
+    --log-cli-level=info
+    -n logical
+    --dist=worksteal
 tasks:
   - setup-python: |
       portage/.builds/setup-python.sh "${PYTHON_VERSIONS[@]}"

Reply via email to