-
Notifications
You must be signed in to change notification settings - Fork 34
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
I2C Test assert not catching real failures #16
Comments
@adbridge Didn't we say at one point that STATUS_CONTINUE was deprecated for some reason like this? Do you remember if there was something wrong with the implementation? |
Yes. Unity and Utest don't handle status continue properly. We never got around to finding a good way to deprecate the functionality though. It's intrinsically built into utest.
Sent from my Android phone using TouchDown (www.symantec.com)
…-----Original Message-----
From: Brian Daniels [[email protected]]
Received: Friday, 09 Dec 2016, 20:55
To: ARMmbed/ci-test-shield [[email protected]]
CC: Anna Bridge [[email protected]]; Mention [[email protected]]
Subject: Re: [ARMmbed/ci-test-shield] I2C Test assert not catching real failures (#16)
@adbridge<https://github.com/adbridge> Didn't we say at one point that STATUS_CONTINUE was deprecated for some reason like this? Do you remember if there was something wrong with the implementation?
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#16 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKrGbRnq5ZYuNQBpOfODCYoBEio90bZnks5rGcA7gaJpZM4LJVqv>.
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
|
@maclobdell If you've fixed this would you mind submitting a PR with the fix, or at least a gist with the code implementation so @0xc0170 can mainline the fix? Also, nice find! |
@maclobdell |
You can also just remove the function |
I think we want to have continue in this case, as the test result should show all results, not just the last one that failed? @adbridge Is this tracked anywhere as an issue? I would like to have this fixed in this repository. |
Marcus was against having continue working at all. Basically if a test case fails at any point that test case overall should fail. So there is an element of good design to test cases that needs to be observed. There are Jira tickets to 1) deprecate status continue and then 2) remove it completely. But these are very low priority and the 2nd one is actually quite complicated to do cleanly . |
Thanks @adbridge . I'll send a patch to remove default handler overwrite, |
@0xc0170 You may have to rethink what is a test case. Normally when testing you never say "it's ok if this fails". That's generally a bad test 😄. I think what I've done in the past is run the whole binary as a single test (greentea only, not utest), then create my own printed summary at the end. Then I return fail if any of the "cases" are a failure. Not really ideal, but then again this a bit of a strange situation. |
Just throwing in my 2 cents. In the case of general testing, I agree that if something fails within a group of related tests, it makes sense to stop testing that group and move on to avoid wasting time. However, in the case of CI test shield, it is basically a compliance test, and you want to hit everything at fine granularity and report everything (maybe that can be an optional thing). |
The I2C EEPROM tests should fail on K64F for an other issue. Basically, due to this other issue, the K64F isn't able to read from the EEPROM. But, the ci-test-shield I2C EEPROM tests for writing/reading 10 and 100 bytes are showing OK. This is not correct.
Here is the very verbose (--vv) log for one of the tests. It shows that the number of bytes read is 0 and the Read string is null. But the asserts are not catching this.
It looks like one of the assert types is distorting the results from the other asserts.
If these two lines are commented out in void flash_WR(), then the tests result in the expected and correct behavior (fail when it actually fails). However, with these lines not-commented out, the tests result in OK.
@bridadan mentioned that he thinks this has something to do with the use of STATUS_CONTINUE in greentea_failure_handler
@adbridge
@BlackstoneEngineering
The text was updated successfully, but these errors were encountered: