refactored autopilot tests are fail prone for wrong environment setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Invalid
|
Medium
|
Unassigned | ||
unity8 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
The old autopilot tests, when you would launch "autopilot run unity8" from within the source directory in tests/autopilot/, it would always try to run the local build. If there was no local build, it would fail, saying it can't find the binary.
The new ones, don't. They fall back to the installed binary even though loading local tests. This fails in like 99% of the cases. Even worse, the error messages you get just totally don't match with the code you are examining for debugging. This issue is even worse now that the tests require a make install in the builddir (not telling so btw).
If the install step really really needs to be kept (which I'm strongly voting against) then there should be a big fat debug output which binary is loaded, a big fat warning if the expected local installation is not found and in no way falling back to some other unity8 binary not having to do anything with the local test suite.
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Christopher Lee (veebers) |
importance: | Undecided → Medium |
status: | New → Triaged |
no longer affects: | unity8 |
The "install" step is needed to maintain the distinction between mocks we need and mocks we don't, during autopilot testing. If you can come up with a solution, please do - but to me the "install" step just brings us closer to the real environment.
What we maybe need to do instead is to allow "make autopilot unity8.shell...." to launch autopilot accordingly? Maybe the "install" step should be part of ./build ?