Conversation
1511c98 to
c0b892e
Compare
|
No, this works locally on 2.8. Seemed to be something with the buildbot. Now after a force push it passes. |
|
[Hans Unzner]
No, this works locally on 2.8. Seemed to be something with the
buildbot. Now after a force push it passes.
How strange. Anyway, the test seem to be working now and look good to
me.
…--
Happy hacking
Petter Reinholdtsen
|
|
The build failure is back, it seems to be something intermittent:
I've only ever seen it fail on RTAI, never on Preempt-RT. Might be an artifact of the small sample size... It fails 100% of the time for me in a local VM running Wheezy with our RTAI kernel. It looks like the test failure is due to maybe a race condition in what component id is assigned to the mb2hal component - sometimes it's 4 and sometimes it's 5. |
|
Then it seems that I can't use the simple "compare with expected result" method. |
|
After looking at this closer, I don't think it ever worked on RTAI, and our 2.8 build has been broken since this went in, in January. For some reason I don't yet know, uspace and RTAI run different things at startup, so later component IDs are different. You can see this by running UspaceRTAINote that uspace starts just one component ( HAL assigns components unique ids at load-time, and the ids are just sequential integers (kind of like pids of regular unix processes). So all components loaded after this will also have different ids on these two platforms. I don't want to get into why RTAI needs the |
|
This makes the test way more tolerant: #2455 |
This adds a test for mb2hal consisting of two parts:
I didn't manage to cover this in one test case (or in one instance), because the output of the second part (
show pin ...) overlaps the debug output of mb2hal. I have no really idea how to wait until mb2hal's initializing printouts are ready.Maybe someone has a better idea.