-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer soft fail over hard fail #93
Comments
Could you point to the code where you see this hard-fail? as far as I know if the tests fail (or sim fails and no signature file is generated by DUT) the reports are always generated. Could provide a trace-log if possible. |
Sure. Around line 42 of framework/test.py:
This code does a hard fail with the SystemExit() if the signature file doesn't get generated for a test case because my simulator crashes. It would be better if it just logged an error in the report that the file wasn't generated so I could still observe the results of the other tests where signature files were generated. I don't have the trace-log anymore and have moved on to another project, but this above message is the last thing I see in the output and no report is generated that I can see. RISCOF just quits. Thank you for looking. |
thanks for this. I will make the necessary patch. Instead of just Pass/Fail I think riscof should have a status "Unavailable" to indicate other reasons for failure |
Just wanted to say that a soft fail would also be much preferable for my application as well, it's quite frustrating when a single test failing to output a signature causes no report to be generated, making it hard to debug what went wrong with my testing framework. |
File framework/test.py in compare_signature() does a hard fail if the signature file doesn't exist. For my case, after 30+ hours of simulation, all but one of the tests produced signature files. For the one that didn't, the simulator crashed thereby not generating a signature file. Due to the hard fail, the report is not generated.
Recommending soft fail with missing signature file result indicated in the report so the results of the other 400+ tests can be observed in the HTML report.
The text was updated successfully, but these errors were encountered: