aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testsuite.sh
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-30 18:08:39 +0100
committerGitHub <noreply@github.com>2020-12-30 18:08:39 +0100
commit286d064a61a83ff39a389f96be86966977458a52 (patch)
treead252dd22aba6afe37fe667bc9188f5262d03bb0 /testsuite/testsuite.sh
parentfbe43ad4dc8451fecba5318af97541283207a0e8 (diff)
downloadghdl-286d064a61a83ff39a389f96be86966977458a52.tar.gz
ghdl-286d064a61a83ff39a389f96be86966977458a52.tar.bz2
ghdl-286d064a61a83ff39a389f96be86966977458a52.zip
Executing Python unit tests in Parallel Processes (#1558)
* Prepare pyunit tests for parallel and independent execution with pytest/pytest-forked. * Added forked pytest test executions. * Added a pytest ini-file * Corrected pytest settings. * Adjusting PYTHONPATH. * Reverted changes required for pytest without modified file search patterns. (cherry picked from commit 0207b11cfef029f2ed765df3ad983ef47cc0838b) * Run pyunit tests without '--forked'. * Deactivate black. (cherry picked from commit d6b68588d4de26bf94181ea726be969cd09aadf0)
Diffstat (limited to 'testsuite/testsuite.sh')
-rwxr-xr-xtestsuite/testsuite.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/testsuite.sh b/testsuite/testsuite.sh
index 55c2ff9fb..b1b69a7e2 100755
--- a/testsuite/testsuite.sh
+++ b/testsuite/testsuite.sh
@@ -141,9 +141,7 @@ do_gna () {
# The Python Unit testsuite: regression testsuite for Python bindings to libghdl
do_pyunit () {
gstart "[GHDL - test] pyunit"
- cd ..
- PYTHONPATH=$(pwd) python3 -m unittest testsuite.pyunit.libghdl.Initialize
- cd testsuite
+ PYTHONPATH=$(pwd)/.. python3 -m pytest pyunit
gend
}