| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tests: add workaround for pre-232 system returning EINVAL on some flags | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -5/+15 |
| | | |||||
| * | tests: skip fdstore tests if not implemented | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -3/+15 |
| | | | | | Should fix #12. | ||||
| * | journal: convert seek_realtime argument to microseconds | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -2/+16 |
| | | | | | | | | | | | | | | This somewhat breaks backwards compatibility, but not for the previously documented arguments: floats are now interpreted differently, but ints and datetime.datetime objects are interpreted the same as before. But the documentation clearly stated that only ints and datetime.datetime objects were allowed. This makes seek_realtime match seek_monotonic and other functions which take time and follows the principle of least surprise. Fixes #21. | ||||
| * | tests: use a context manager, skip new functions if missing | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -21/+16 |
| | | |||||
| * | reader: add SD_JOURNAL_OS_ROOT and rework flag passing | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -10/+25 |
| | | | | | | | | | | | | | | | | | | Let's pass any flags through to the journal functions without checking validity. Those functions do their own checking, so there's no need to second-guess. The semantics for _Reader(flags=0) are a bit changed: before, this would be transformed into sd_journal_open(SD_J_LOCAL_ONLY). Now, this results in sd_journal_open(0). Previous behaviour should be achieved by not specifying the flags at all. This change is necessary, because previously it was not possible to pass flags=0 to sd_journal_open(0), i.e. it was not possible to "merge" journals through the Python interface. Similarly, Reader(flags=0) now means to open all journals, and Reader(flags=None) is the same as Reader(flags=LOCAL_ONLY). | ||||
| * | journal: allow sd_journal_open_directory_fd to be used | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -0/+16 |
| | | |||||
| * | tests: check enumerate_fields, has_runtime_fiels, has_persistent_files | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -0/+47 |
| | | |||||
| * | Spelling fixes | Ville Skyttä | 2016-05-21 | 1 | -2/+2 |
| | | |||||
| * | test_daemon: Define a default value for SO_PASSCRED | Mike Gilbert | 2016-01-20 | 1 | -1/+3 |
| | | | | | The socket module seems to be missing this in python2.7. | ||||
| * | tests: mirror is-systemd-running test from systemdv231 | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 |
| | | |||||
| * | Python2 does not have ConnectionError | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -5/+10 |
| | | |||||
| * | tests: add tests for notify() | Zbigniew Jędrzejewski-Szmek | 2015-10-26 | 1 | -1/+36 |
| | | |||||
| * | tests: work around bug in sd_is_mq | Zbigniew Jędrzejewski-Szmek | 2015-10-25 | 1 | -3/+20 |
| | | | | | The fix was committed in v226-362-g0260d1d542. | ||||
| * | tests: add simplistic tests for Reader matches | Zbigniew Jędrzejewski-Szmek | 2015-09-16 | 1 | -1/+33 |
| | | | | | | | | It would be nice to run those tests against fake journal files with the right content to actually test the matches. But those tests are still useful because they test that the interface works as expected. | ||||
| * | tests: add tests for Reader initialization | Zbigniew Jędrzejewski-Szmek | 2015-09-17 | 1 | -0/+39 |
| | | |||||
| * | tests: start adding tests for JournalHandler | Zbigniew Jędrzejewski-Szmek | 2015-09-17 | 1 | -0/+34 |
| | | |||||
| * | tests: add more tests for socket functions | Zbigniew Jędrzejewski-Szmek | 2015-09-06 | 1 | -1/+85 |
| | | |||||
| * | tests: daemon.booted | Zbigniew Jędrzejewski-Szmek | 2015-09-05 | 1 | -1/+9 |
| | | |||||
| * | tests: daemon.listen_fds | Zbigniew Jędrzejewski-Szmek | 2015-09-05 | 1 | -1/+26 |
| | | |||||
| * | tests: add first test | Zbigniew Jędrzejewski-Szmek | 2015-08-07 | 1 | -0/+64 |
| This is based on the code in https://github.com/systemd/python-systemd/pull/4 by Jacek Konieczny <j.konieczny@eggsoft.pl>. | |||||
