use new pytest config
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 13 Jun 2023 01:59:01 +0000 (18:59 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 13 Jun 2023 01:59:01 +0000 (18:59 -0700)
.gitignore
.gitlab-ci.yml
pyproject.toml

index f288a6dfb814d843c0f26837c809f18771797965..c33514db4432b240e0fdec24bad4860024f83858 100644 (file)
@@ -10,4 +10,5 @@ __pycache__
 *.egg-info
 *.gtkw
 /formal_test_temp
-/sim_test_out
\ No newline at end of file
+/sim_test_out
+/test-out
index 561c7bb1ea538bc2625bcdb05cd5ab5b73a14495..526e795b0c9acc2f4b7b633c3c064f1a77e53fa1 100644 (file)
@@ -48,7 +48,7 @@ build:
         - ccache --show-stats || true
         - python3 -m venv --system-site-packages .venv
         - . .venv/bin/activate
-        - pip install pytest-xdist twine cython
+        - pip install pytest-xdist==3.3.1 pytest==7.3.1 twine cython
     script:
         - . .venv/bin/activate
 
@@ -123,6 +123,12 @@ 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
 
         - pytest -v
index 267ae9af7d6f7a6cb20043c7f6289b3d53213f59..4862ddbdf4f2cf25056a5330db44e47859e5ab7b 100644 (file)
@@ -3,10 +3,11 @@ minversion = "6.0"
 python_classes = ""
 python_functions = ""
 testpaths = ["src/ieee754"]
-required_plugins = ["pytest-xdist>=1.0.0"]
+required_plugins = ["pytest-xdist>=1.0.0", "pytest-output-to-files>=0.1.0"]
 addopts = [
     "-n",
     "auto",
+    "--shorten-output-dir=test-out",
     "--ignore",
     "src/ieee754/add/test_dual.py",
     "--ignore",