ibex icon indicating copy to clipboard operation
ibex copied to clipboard

UVM DV: Return non-zero exit code if a test fails

Open imphil opened this issue 6 years ago • 5 comments

Running the regressions like

make -C dv/uvm/core_ibex ISS=spike ITERATIONS=1 SEED=1

returns a 0 exit code even if a test fails.

@udinator what do you use to determine test success/failure? Can we modify the tooling to get a non-zero exit code in this case?

imphil avatar Aug 20 '20 18:08 imphil

Currently we return 0 all the time - we use the post comparison to determine "true" success/failure. Sure, I can look into modifying the scripts to return a non-zero code on failures.

udinator avatar Aug 20 '20 19:08 udinator

A post comparision script to determine success/failure would also do the trick -- if you have something like that around I can plug it into CI as well.

imphil avatar Aug 20 '20 19:08 imphil

The post comparison script I mentioned should already have been plugged into the CI I think, it is the script that provides the final report of how many tests passed or failed. The return code is actually returned by sim.py, so I think any modifications will have to be there.

udinator avatar Aug 20 '20 21:08 udinator

@udinator any progress on this? It would be great if CI would not only run tests, but also fail if tests fail :smile:

imphil avatar Oct 23 '20 09:10 imphil

Hi @imphil, sorry for the delay on my end!

I have a patch ready to do this, I'll get a PR out and request a review.

udinator avatar Oct 23 '20 19:10 udinator