use pytest-output-to-files plugin with pytest==7.3.1 and pytest-xdist==3.3.1
authorJacob Lifshay <programmerjake@gmail.com>
Sat, 10 Jun 2023 01:29:48 +0000 (18:29 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:19 +0000 (19:26 +0000)
.gitignore
.gitlab-ci.yml
pyproject.toml [new file with mode: 0644]

index ad440053de493bdb508b80e0a787312b2f7883cb..6ce67a3b9457705824b887ab1376bcc73f165a19 100644 (file)
@@ -12,3 +12,4 @@ dist
 /crtl*/
 /crtl*
 /formal_test_temp
+/test-out/
index 5550bedafa98f770af82ff8b52fd5dd076e6afbf..71a8ad1a9b189ece3a361ed83d921cd1900cd432 100644 (file)
@@ -46,7 +46,7 @@ build:
         - export CCACHE_COMPILERCHECK=content
         - ccache --zero-stats || true
         - ccache --show-stats || true
-        - python3 -m pip install --user pytest-xdist
+        - python3 -m pip install --user pytest-xdist==3.3.1 pytest==7.3.1
     script:
         - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys
         - pushd yosys
@@ -90,8 +90,14 @@ build:
         - python3 setup.py develop
         - popd
 
+        - git clone --depth 1 https://git.libre-soc.org/git/pytest-output-to-files.git pytest-output-to-files
+        - pushd pytest-output-to-files
+        - git rev-parse HEAD
+        - python3 setup.py develop
+        - popd
+
         - python3 setup.py develop
 
         - make generate &> generate.log || { cat generate.log; false; }
 
-        - SILENCELOG='!*,default' pytest -n auto -v src/openpower --maxfail=10
+        - SILENCELOG='!*,default' pytest -v --maxfail=10
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644 (file)
index 0000000..ce84b6d
--- /dev/null
@@ -0,0 +1,11 @@
+[tool.pytest.ini_options]
+minversion = "6.0"
+python_classes = ""
+python_functions = ""
+testpaths = ["src/openpower"]
+required_plugins = ["pytest-xdist>=1.0.0", "pytest-output-to-files>=0.1.0"]
+addopts = [
+    "-n",
+    "auto",
+    "--shorten-output-dir=test-out",
+]