Merge lp:~gz/workspace-runner/sorted_walk_results into lp:workspace-runner
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | 26 |
Merged at revision: | 26 |
Proposed branch: | lp:~gz/workspace-runner/sorted_walk_results |
Merge into: | lp:workspace-runner |
Diff against target: |
17 lines (+6/-1) 1 file modified
workspace_runner/tests/__init__.py (+6/-1) |
To merge this branch: | bzr merge lp:~gz/workspace-runner/sorted_walk_results |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+299721@code.launchpad.net |
Commit message
Fix test failures by applying stable ordering to os.walk results
Description of the change
Currently make test complains out of order walk results from the FakePrimitives test class.
<https:/
Note os.walk does not promis ordering, but does let you manipulate dirnames in place with topdown=True to apply an order you desire. So, this branch just does that.
FAIL: test_s3_upload (workspace_
-------
Traceback (most recent call last):
File "workspace_
'upload.json', 'upload_
AssertionError: Lists differ: [('/tmp/tmp6gFog4', ['.wsr'], ... != [('/tmp/tmp6gFog4', ['.wsr'], ...
First differing element 1:
('/tmp/
('/tmp/
[('/tmp/
- ('/tmp/
? ---------------
+ ('/tmp/
? +++++++++++++++
Thanks.