Merge lp://qastaging/~bjornt/launchpad/bug-495397 into lp://qastaging/launchpad
Proposed by
Björn Tillenius
Status: | Merged |
---|---|
Approved by: | Gary Poster |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp://qastaging/~bjornt/launchpad/bug-495397 |
Merge into: | lp://qastaging/launchpad |
Diff against target: |
43 lines (+14/-1) 1 file modified
lib/canonical/testing/layers.py (+14/-1) |
To merge this branch: | bzr merge lp://qastaging/~bjornt/launchpad/bug-495397 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster (community) | Approve | ||
Review via email: mp+16007@code.qastaging.launchpad.net |
To post a comment you must log in.
Add a fake fileno() method to sys.stdin, if it doesn't exist.
When running different test layers, the test runner starts a new ueGenerator instance. This instance doesn't have a fileno
sub-process, if it encounters a layer that can't be torn down
in-process. When this happens, sys.stdin is replaced with a
FakeInputContin
method, making it impossible for Windmill to start Firefox. By adding a
fake fileno() method everything works as expected. I made it return
None, since I would assume that if anything tried to use it, things
would break, rather than silently work in an odd way.
-- /launchpad. net/~bjornt
Björn Tillenius | https:/