Merge lp://staging/~jamesodhunt/upstart/bug-1221466+1222702 into lp://staging/upstart

Proposed by James Hunt
Status: Merged
Merged at revision: 1549
Proposed branch: lp://staging/~jamesodhunt/upstart/bug-1221466+1222702
Merge into: lp://staging/upstart
Diff against target: 327 lines (+191/-43)
3 files modified
ChangeLog (+13/-0)
extra/upstart-file-bridge.c (+32/-8)
scripts/tests/test_pyupstart_session_init.py (+146/-35)
To merge this branch: bzr merge lp://staging/~jamesodhunt/upstart/bug-1221466+1222702
Reviewer Review Type Date Requested Status
Dimitri John Ledkov (community) Approve
Review via email: mp+184829@code.staging.launchpad.net

Description of the change

* extra/upstart-file-bridge.c:
  - create_handler(): Use original_file() for directories
    (LP: #1221466, #1222702).
  - watched_dir_new(): Additional assert.
  - watched_file_new():
    - Additional assert.
    - Store original directory path in file object to ensure reliable
      matching for directories.
* scripts/tests/test_pyupstart_session_init.py: Added file bridge tests
  for directory creation, modification and deletion.

As expected, new tests in this branch fail with current upstart-file-bridge, but pass when using the updated version in this branch.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

lgtm.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches