Merge ~chad.smith/cloud-init:tests/cii-summary-fallback-to-traceback into cloud-init:master
Proposed by
Chad Smith
Status: | Merged |
---|---|
Approved by: | Dan Watkins |
Approved revision: | f14a6d926eb8fc5ee39831ebc63cf034dc723ea0 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~chad.smith/cloud-init:tests/cii-summary-fallback-to-traceback |
Merge into: | cloud-init:master |
Diff against target: |
22 lines (+7/-2) 1 file modified
tests/cloud_tests/verify.py (+7/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dan Watkins | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+356427@code.launchpad.net |
Commit message
tests: integration test failure summary to use traceback if empty error
When integration tests verification fails, the object returned
contains has 'error' and 'traceback' keys. Each key can contain empty
strings. If the simplified 'error' message is empty, fallback and use
the more verbose full 'traceback' text in the failure summary.
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Will hold on committing this until cosmic freeze is over.
Basically it changes the following output
test failures: tests.testcases .modules. apt_configure_ sources_ key.TestAptconf igureSourcesKey .test_instance_ data_json_ kvm
* tests.cloud_
----- CHANGED TO-----
test failures: tests.testcases .modules. apt_configure_ sources_ key.TestAptconf igureSourcesKey .test_instance_ data_json_ kvm jenkins/ slaves/ torkoal/ workspace/ cloud-init- integration- nocloud- kvm-c/cloud- init/tests/ cloud_tests/ testcases/ base.py" , line 265, in test_instance_ data_json_ kvm assertEqual( 'config- disk (/dev/vda)', v1_data[ 'subplatform' ])
* tests.cloud_
Traceback (most recent call last):
File "/var/lib/
self.
AssertionError: 'config-disk (/dev/vda)' != 'config-disk (/dev/vdb)'
- config-disk (/dev/vda)
? ^
+ config-disk (/dev/vdb)
?