diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dea24b4..6ba0d22 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,10 +7,22 @@ jobs: - job: strategy: matrix: + Linux-Icarus-py37: + python.version: "3.7" + imageName: "ubuntu-latest" + SIM: "icarus" Linux-Icarus-py38: python.version: "3.8" imageName: "ubuntu-latest" SIM: "icarus" + Linux-Icarus-py39: + python.version: "3.9" + imageName: "ubuntu-latest" + SIM: "icarus" + Linux-Icarus-py310: + python.version: "3.10" + imageName: "ubuntu-latest" + SIM: "icarus" Linux-GHDL-py38: python.version: "3.8" imageName: "ubuntu-latest" @@ -57,7 +69,7 @@ jobs: displayName: Init Conda - script: | - conda install -y python=$(python.version) pytest + conda install -y python=$(python.version) conda update -q -y conda displayName: Update set python version and update @@ -98,8 +110,9 @@ jobs: displayName: "Package Test with Tox" condition: ne( variables['Agent.OS'], 'Windows_NT' ) + # AttributeError: module 'py' has no attribute 'log' for pytest 7.2 - script: | - pip install pytest-parallel + pip install pytest-parallel pytest==7.1 displayName: "Install pytest-parallel" - script: | @@ -123,7 +136,7 @@ jobs: pytest -m compile tests/test_parallel.py pytest -m "not compile" --workers 2 tests/test_parallel.py displayName: "Test with pytest-parallel" - condition: ne( variables['Agent.OS'], 'Windows_NT' ) + condition: and(ne( variables['Agent.OS'], 'Windows_NT' ), ne(variables['python.version'],3.7)) - script: | pytest -m compile tests/test_parallel.py diff --git a/cocotb_test/simulator.py b/cocotb_test/simulator.py index 496438c..a70a827 100644 --- a/cocotb_test/simulator.py +++ b/cocotb_test/simulator.py @@ -315,6 +315,8 @@ async def _exec(self, cmds): ] ) + await p.wait() + def execute(self, cmds): __tracebackhide__ = True # Hide the traceback when using PyTest.