Merge lp:~mandel/ubuntuone-client/unify-filemonitors into lp:ubuntuone-client
| Status: | Merged |
|---|---|
| Approved by: | Manuel de la Peña on 2012-07-19 |
| Approved revision: | 1304 |
| Merged at revision: | 1279 |
| Proposed branch: | lp:~mandel/ubuntuone-client/unify-filemonitors |
| Merge into: | lp:ubuntuone-client |
| Prerequisite: | lp:~mandel/ubuntuone-client/unify-processors |
| Diff against target: |
187 lines (+63/-23) 8 files modified
tests/platform/filesystem_notifications/test_darwin.py (+3/-3) tests/platform/filesystem_notifications/test_fsevents_daemon.py (+3/-1) tests/platform/filesystem_notifications/test_linux.py (+2/-2) tests/platform/filesystem_notifications/test_windows.py (+3/-3) ubuntuone/platform/filesystem_notifications/__init__.py (+5/-11) ubuntuone/platform/filesystem_notifications/monitor/__init__.py (+42/-0) ubuntuone/platform/filesystem_notifications/monitor/common.py (+2/-2) ubuntuone/platform/filesystem_notifications/monitor/darwin/__init__.py (+3/-1) |
| To merge this branch: | bzr merge lp:~mandel/ubuntuone-client/unify-filemonitors |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Diego Sarmentero (community) | Approve on 2012-07-16 | ||
| Mike McCracken (community) | 2012-07-16 | Approve on 2012-07-16 | |
|
Review via email:
|
|||
Commit Message
Unify the file monitor implementations to simplify the fact that more than one monitor implementation exists on darwin.
Description of the Change
Unify the file monitor implementations to simplify the fact that more than one monitor implementation exists on darwin.
- 1297. By Manuel de la Peña on 2012-07-16
-
Merged with changes one on mac.
- 1298. By Manuel de la Peña on 2012-07-16
-
Fix broken import.
- 1299. By Manuel de la Peña on 2012-07-16
-
Make import line smaller to fit 80 chars.
- 1300. By Manuel de la Peña on 2012-07-16
-
Fix the import.
- 1301. By Manuel de la Peña on 2012-07-16
-
Fix imports.
| Mike McCracken (mikemc) wrote : | # |
The tests now run.
Note that to run the tests you need to have the lp:ubuntuone-fsevents-daemon , and put its python/ subdir on PYTHONPATH.
You also need lp:~diego.sarmentero/+junk/python-macfsevents built and put the build/lib dir on your PYTHONPATH.
Then just run python $u1trial --reactor=twisted -i "test_linux.
- don't use run-mac-tests because run-mac-tests overwrites PYTHONPATH, and only test the platform/
finally, this will hang on cleanup - there's apparently another branch pending to fix that
- 1302. By Manuel de la Peña on 2012-07-17
-
Merged unify-processors into unify-filemonitors.
- 1303. By Manuel de la Peña on 2012-07-19
-
Merged unify-processors into unify-filemonitors.
- 1304. By Manuel de la Peña on 2012-07-19
-
Merged unify-processors into unify-filemonitors.


Looks like the tests need to be changed to reflect the refactor too:
Traceback (most recent call last): mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ bin/python" , line 58, in <module> __file_ _) mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ parts/ubuntuone -dev-tools/ bin/u1trial" , line 341, in <module> mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ parts/ubuntuone -dev-tools/ bin/u1trial" , line 321, in main get_suite( config) mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ parts/ubuntuone -dev-tools/ bin/u1trial" , line 192, in get_suite 'ignore- paths'] )) mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ parts/ubuntuone -dev-tools/ bin/u1trial" , line 176, in _collect_tests unittest( filepath) mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ parts/ubuntuone -dev-tools/ bin/u1trial" , line 116, in _load_unittest mmccrack/ Documents/ Canonical/ Source/ buildout- env/scripts/ devsetup/ parts/unify- filemonitors/ tests/platform/ filesystem_ notifications/ test_darwin. py", line 42, in <module> platform. filesystem_ notifications import (
File "/Users/
execfile(
File "/Users/
main()
File "/Users/
suite = trial_runner.
File "/Users/
config[
File "/Users/
module_suite = self._load_
File "/Users/
module = __import__(modpath, None, None, [""])
File "/Users/
from ubuntuone.
ImportError: cannot import name common