Merge lp:~therve/landscape-client/detect-task-changes into lp:~landscape/landscape-client/trunk
Proposed by
Thomas Herve
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 633 | ||||
Proposed branch: | lp:~therve/landscape-client/detect-task-changes | ||||
Merge into: | lp:~landscape/landscape-client/trunk | ||||
Diff against target: |
97 lines (+36/-6) 2 files modified
landscape/package/reporter.py (+10/-5) landscape/package/tests/test_reporter.py (+26/-1) |
||||
To merge this branch: | bzr merge lp:~therve/landscape-client/detect-task-changes | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Armstrong (community) | Approve | ||
Chris Glass (community) | Approve | ||
Review via email: mp+151030@code.launchpad.net |
Description of the change
OK, here's the change. I'm not sure it fixes everything that Andreas saw, but I believe it's a first step: what I observers is that the reporter was translation hash to ids, but then didn't declare those installed/
To post a comment you must log in.
Looks good! +1
[1] self.check_ stamp_file)
+ touch_file(
I think this and the related assertTrue don't really test that the code detected changes, maybe something like the following would?
touch_file( self.check_ stamp_file) self.check_ stamp_file) .st_mtime
time_touched = os.stat(
...
time_modified = os.stat( self.check_ stamp_file) .st_mtime (time_modified > time_touched)
self.assertTrue