Test for errors during inotify callback
authorGuido Trotter <ultrotter@google.com>
Fri, 21 May 2010 13:54:54 +0000 (14:54 +0100)
committerGuido Trotter <ultrotter@google.com>
Tue, 25 May 2010 10:16:59 +0000 (11:16 +0100)
commit7678409f7f4dfd7687ee6b5a328f1d98405cd113
treef09765d9d96206f49da0f3a1c62365a35065cfec
parent32b1efa17459924251cef713c81fb2bff236a562
Test for errors during inotify callback

- Create a new _MyErrorLoggingAsyncNotifier class which registers
  error counts, rather than logging them
- Add an additional ERR notifier to test with
- Check that no error was returned, for tests that weren't supposed to
- Add a new test case for a callback that's supposed to raise an
  exception

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
test/ganeti.asyncnotifier_unittest.py