[Merge] lp:~jamesodhunt/upstart/bug-1360208 into lp:upstart
James Hunt
james.hunt at canonical.com
Tue Sep 16 19:05:29 UTC 2014
James Hunt has proposed merging lp:~jamesodhunt/upstart/bug-1360208 into lp:upstart.
Requested reviews:
Upstart Reviewers (upstart-reviewers)
Related bugs:
Bug #1360208 in upstart : "file watcher doesn't execute if combining ~ and * in the file description"
https://bugs.launchpad.net/upstart/+bug/1360208
For more details, see:
https://code.launchpad.net/~jamesodhunt/upstart/bug-1360208/+merge/234869
Fix for bug 1360208.
* extra/upstart-file-bridge.c:
- Converted original_path() macro to a function.
- WatchedFile: Added more details on this crucial type.
- file_filter(): Removed as it was too simplistic and duplicating the
work of the individual handlers in determining whether a path should
be considered.
- create_handler(): Simplified.
- modify_handler(): Simplified.
- delete_handler(): Simplified.
- handle_event(): Now deals with globs and handles tilde+glob jobs
(LP: #1360208).
- handle_glob(): New function that allows main handlers to be simplified.
- Added lots of debug for '--debug'.
- expand_path(): Only check password database if $HOME not set. This
allows the tests to use a fake $HOME to check that tilde expansion
works without modifying the users actual $HOME.
- New utility functions:
- file_exists()
- remove_trailing_slashes()
* scripts/pyupstart.py:
- Add missing file header.
- pep8 formatting changes.
* scripts/tests/test_pyupstart_session_init.py: TestFileBridge:
- test_init_start_file_bridge():
- Force the file bridge to run with a fake $HOME below /tmp to
allow testing jobs with paths that require tilde expansion.
- Run file bridge in foreground to capture debug output.
- Change tests to check for values of all variables the file-event(7)
sets.
- New tests for:
- glob file job.
- tilde file job.
- glob and tilde file job.
* scripts/tests/test_pyupstart_system_init.py: pep8 formatting changes.
--
https://code.launchpad.net/~jamesodhunt/upstart/bug-1360208/+merge/234869
Your team Upstart Reviewers is requested to review the proposed merge of lp:~jamesodhunt/upstart/bug-1360208 into lp:upstart.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 65778 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140916/dadcf11a/attachment-0001.diff>
More information about the upstart-devel
mailing list