Merge lp://staging/~tealeg/landscape-client/fix-lucid-detect-package-changes-traceback into lp://staging/~landscape/landscape-client/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Geoff Teale | ||||
Approved revision: | 684 | ||||
Merged at revision: | 680 | ||||
Proposed branch: | lp://staging/~tealeg/landscape-client/fix-lucid-detect-package-changes-traceback | ||||
Merge into: | lp://staging/~landscape/landscape-client/trunk | ||||
Diff against target: |
77 lines (+30/-5) 3 files modified
landscape/lib/fs.py (+15/-3) landscape/lib/tests/test_fs.py (+14/-0) landscape/package/tests/test_reporter.py (+1/-2) |
||||
To merge this branch: | bzr merge lp://staging/~tealeg/landscape-client/fix-lucid-detect-package-changes-traceback | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Free Ekanayaka (community) | Approve | ||
Alberto Donato | Approve | ||
Review via email: mp+165894@code.staging.launchpad.net |
Commit message
This branch fixes an issues exposed by running tests on a fast machine. A test
relies on relies on a file being last being checked 1 second or more before an
assertion is made which is indirectly based on the modification time of that
file, on a fast enough machine this test will always fail.
I have added an offset parameter landscape.
offset the access and modification time of the file, and then used it to set
the modification time of the file a second further into the future thus
ensuring the test conditions are met for a wider window.
Description of the change
This branch fixes an issues exposed by running tests on a fast machine. A test relies on relies on a file being last being checked 1 second or more before an assertion is made which is indirectly based on the modification time of that file, on a fast enough machine this test will always fail.
I have added an offset parameter landscape.
Looks good, +1!