CTSRD-CHERI / QuickCheckVEngine

A RISC-V TestRIG Verification Engine based on QuickCheck
BSD 2-Clause "Simplified" License
7 stars 9 forks source link

Respect --continue-on-failure for --trace-directory #23

Closed arichardson closed 1 year ago

arichardson commented 1 year ago

Previously we were continuing unconditonally, now we abort the run on the first failure unless --continue-on-failure is passed. There is probably a way of doing this that doesn't print a backtrace, but this minimal change using error achives the desired semantics for me:

# Test end
QCVEngine: Failure. Exiting...
CallStack (from HasCallStack):
  error, called at src/QuickCheckVEngine/Main.hs:324:115 in main:Main

Fixes: https://github.com/CTSRD-CHERI/QuickCheckVEngine/issues/22

arichardson commented 1 year ago

Correct fix in https://github.com/CTSRD-CHERI/QuickCheckVEngine/commit/95077dd91477dde4e287c47bc5f76a87191f67fc