ATS does not return error codes on failed tests
Closed this issue · 7 comments
This function says that it returns false on interrupted or failed tests but there isn't a return statement:
Lines 661 to 683 in 7ed78d6
This causes problems in CI because unless you parse the reports for failed tests, jobs do not mark themselves as failures.
Well, that is odd. Nobody has mentioned this before. But it should be fixable for sure.
I'll be looking at ATS again on Monday most likely as I have some other work I want to get off of the python3 branch and into main. I'll see if I canfix this then.
@white238 I'm working on this issue now and so far I have main() returning false on: keyboard interrupts, ATS errors, and failed tests. Would you want/expect main() to return false on tests that have timed out and/or halted as well? Or in a more general sense, would you expect main to return false for anything but all tests running successfully?
Yes, I would expect it to return false for anything but the tests running successfully.
@white238 I believe that I have added the missing functionality and tests are passing on our side. Is there any specific way that you would like to test this? I can make a public install for you or you can try with either the the branch linked to this issue or once the changes are pushed to the main branch.
Thanks for looking into this. I will try to try this out soon but I am fine with you guys closing this and leaving it up to me to test.