Merge lp:~mikemc/ubuntuone-client/clean-up-fsmonitor-in-tests into lp:ubuntuone-client
Status: | Merged |
---|---|
Approved by: | dobey |
Approved revision: | 1379 |
Merged at revision: | 1368 |
Proposed branch: | lp:~mikemc/ubuntuone-client/clean-up-fsmonitor-in-tests |
Merge into: | lp:ubuntuone-client |
Prerequisite: | lp:~mikemc/ubuntuone-client/fix-networkstate-manythreads |
Diff against target: |
400 lines (+155/-46) 6 files modified
contrib/testing/testcase.py (+42/-1) tests/syncdaemon/test_eq_inotify.py (+14/-2) tests/syncdaemon/test_eventqueue.py (+9/-4) tests/syncdaemon/test_fsm.py (+3/-2) tests/syncdaemon/test_sync.py (+24/-9) tests/syncdaemon/test_vm.py (+63/-28) |
To merge this branch: | bzr merge lp:~mikemc/ubuntuone-client/clean-up-fsmonitor-in-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
dobey (community) | Approve | ||
Review via email: mp+142800@code.launchpad.net |
Commit message
- Clean up usage of Filesystem Monitor in test suite.
Description of the change
- Clean up usage of Filesystem Monitor in test suite.
All:
- Add fake FilesystemMonitor implementation to avoid unnecessary
threads or IPC connection overhead for tests that don't inspect
events.
test_eq_inotify specifically:
- Skip some tests which assume linux-specific inotify events
- Skip tests for UDF ancestors on non-linux, clarify skip message.
- Skip tests for non-utf8 names, as those are ignored in the fsevent daemon on darwin.
TO TEST: full test suite still not totally working on darwin, run
trial on the specific test files that are changed, eg:
% u1trial --reactor=twisted tests/syncdaemo
NOTE: several tests do still require the fsevents daemon (on darwin) to be running. Otherwise they will fail by timing out when connecting to it. This is a minor annoyance, and I'll file a bug about fixing it via e.g. skipIf, like we do with Squid.