autopilot exits with 0 when a test error-ed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
High
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is how my test run looks like:
-------
mmrazik@
Loading tests from: /tmp/pep8izing
Failed to import test module: tests.test_
Traceback (most recent call last):
File "/usr/lib/
module = self._get_
File "/usr/lib/
__import_
File "/tmp/pep8izing
patch.
SyntaxError: EOL while scanning string literal
.DEBUG: Going to trigger merge: <MagicMock name='mock.
[...]
-------
Ran 123 tests in 0.442s
OK
-------
There is no way to notice (e.g. in jenkins) that something went wrong as autopilot reports OK and exits with 0.
Related branches
- Christopher Lee (community): Approve
- jenkins: Pending (continuous-integration) requested
-
Diff: 133 lines (+82/-10)2 files modifiedautopilot/tests/test_autopilot_functional.py (+77/-8)
bin/autopilot (+5/-2)
Changed in autopilot: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Thomi Richards (thomir) |
Changed in autopilot: | |
status: | Confirmed → Fix Committed |
Changed in autopilot: | |
status: | Fix Committed → Fix Released |
btw. this is also making the unity smoke test job to pass:
+ /usr/bin/autopilot run unity.tests. test_dash. DashRevealTests .test_dash_ reveal python2. 7/dist- packages
No protocol specified
Loading tests from: /usr/lib/
Failed to import test module: unity.tests. test_spread python2. 7/unittest/ loader. py", line 252, in _find_tests module_ from_name( name) python2. 7/unittest/ loader. py", line 230, in _get_module_ from_name _(name) python2. 7/dist- packages/ unity/tests/ __init_ _.py", line 13, in <module> emulators. bamf import BamfWindow python2. 7/dist- packages/ autopilot/ emulators/ bamf.py" , line 18, in <module> python2. 7/dist- packages/ gi/importer. py", line 76, in load_module module. _load() python2. 7/dist- packages/ gi/module. py", line 244, in _load modules = __import_ _('gi.overrides ', fromlist= [self._ namespace] ) python2. 7/dist- packages/ gi/overrides/ Gdk.py" , line 402, in <module>
Traceback (most recent call last):
File "/usr/lib/
module = self._get_
File "/usr/lib/
__import_
File "/usr/lib/
from autopilot.
File "/usr/lib/
from gi.repository import Gdk
File "/usr/lib/
dynamic_
File "/usr/lib/
overrides_
File "/usr/lib/
raise RuntimeError("Gdk couldn't be initialized")
RuntimeError: Gdk couldn't be initialized
[.../several more stacktraces later] ------- ------- ------- ------- ------- ------- ------- ------- -------
-------
Ran 0 tests in 0.000s
OK
Finished: SUCCESS