Python Runner starts tests directly (not waiting for GUI) #3850
Labels
category:codebase:project-automation
(makefiles and Python runner) relating to project automation code
type:feature
new or enhanced functionality
I have been using cocotb for a while and decided to switch to the Python runner approach instead of using a Makefile.
The problem that I found is that, when I use Xcelium as a simulator and open the GUI, the test starts right away and does not wait to be started from the GUI. This is the current code that I run directly, not using pytest:
Note that the GUI is opened, thus the gui flag works correctly. The problem is that before the GUI loads, the test has already started. It is not being triggered by the user.
I took a look at the source code of runner.py for the version that I am using (cocotb 1.8.1) and I am guessing that the main culprit here are lines 1002 and 1003, which always include the following options to the
xrun
command:-input @run
and-input @exit
.I first thought that this was being fixed already for the next release, but the problem persists on the runner.py file of the
master
branch. Lines 1352 to 1360 state that in every case the test is run right away.I think it would be wise for the runner to behave like the Makefile in this sense: if the GUI is started then the user has to trigger it.
Further information of my setup in case it is needed:
The text was updated successfully, but these errors were encountered: