test_runner test_wait_for_instance_fails test fails on fuzzy string matching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu CI Engine |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
I deployed the current (r791) uci-airline's "test-runner" component into BootStack, and ran the tests with "./run-tests ^test_runner". Most tests succeed, but there is one failure:
=======
FAIL: test_runner.
-------
Traceback (most recent call last):
File "test_runner/
unicode(
File "/usr/lib/
assertion_
File "/usr/lib/
self.
File "/usr/lib/
raise self.failureExc
AssertionError: u'Instance never came up (last status: BUILD)' != u'Instance 39b7a267-
- Instance never came up (last status: BUILD)
+ Instance 39b7a267-
This is easy enough to fix with something like
--- test_runner/
+++ test_runner/
@@ -263,8 +263,9 @@
with self.assertRais
- self.assertEqua
- unicode(
+ self.assertRege
+ unicode(
+ 'Instance \S+ never came up \(last status: BUILD\)')
⎵
def test_wait_
but before filing an MP I'd like to get a second opinion whether this is intended.
Related branches
- Vincent Ladeuil (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 15 lines (+3/-2)1 file modifiedtest_runner/tstrun/tests/test_testbed.py (+3/-2)
Changed in uci-engine: | |
status: | New → Fix Committed |
Changed in uci-engine: | |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → Medium |
milestone: | none → uce-0 |
status: | Fix Committed → Fix Released |
The MP now accepts either variant of the error message.