Merge ~cjwatson/launchpad:fix-build-can-be-cancelled-tests into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 2f35d47296d002959d8e0eb86f108527064b9254 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:fix-build-can-be-cancelled-tests |
Merge into: | launchpad:master |
Diff against target: |
88 lines (+24/-12) 4 files modified
lib/lp/oci/tests/test_ocirecipebuild.py (+6/-3) lib/lp/snappy/tests/test_snapbuild.py (+6/-3) lib/lp/soyuz/tests/test_binarypackagebuild.py (+6/-3) lib/lp/soyuz/tests/test_livefsbuild.py (+6/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ioana Lasc (community) | Approve | ||
Review via email: mp+394710@code.launchpad.net |
Commit message
Fix can_be_cancelled tests for various build types
Description of the change
These tests were broken in multiple ways: they tried to iterate over BuildStatus rather than over BuildStatus.items, and they then failed to take the status into account in each loop iteration. These two mistakes cancelled each other out, so we didn't notice.
To post a comment you must log in.