Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | 4 | -24/+51 | |
| | | | | | | | | | | | | | | | | | 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: add support for sd_journal_open_files_fd | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -15/+81 | |
| | ||||||
* | journal: make sd_journal_enumerate return text strings | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -1/+1 | |
| | | | | | Those are field names and they should always be ASCII, and converting them to str automatically makes the answer more useful. | |||||
* | journal: allow sd_journal_open_directory_fd to be used | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 3 | -53/+125 | |
| | ||||||
* | Reformat documentation to be more PEP257-compliant | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 2 | -125/+137 | |
| | | | | | | | | | | Wrapping the sources to ~80 columns means that the formatted output is annoying to read. Rewrap to ~74 columns in the output. Also remove some obsolete descritions of journal permissions and refer to journalctl(1) instead. Add some missing docstrings. | |||||
* | tests: check enumerate_fields, has_runtime_fiels, has_persistent_files | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -0/+47 | |
| | ||||||
* | journal: add wrappers for sd_has_*_files | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -31/+77 | |
| | ||||||
* | journal: add wrapper for sd_journal_enumerate | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -31/+79 | |
| | ||||||
* | journal: check errors properly in query_unique | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -5/+20 | |
| | ||||||
* | Makefile: correct path to generated docs | Sebastian | 2016-09-15 | 1 | -1/+1 | |
| | ||||||
* | Add Docs to README | Sebastian | 2016-09-15 | 1 | -0/+11 | |
| | ||||||
* | Fix typo (#26) | Michael Biebl | 2016-07-16 | 1 | -1/+1 | |
| | ||||||
* | setup.py: respect ${PKG_CONFIG} if set (#18) | Benedikt Morbach | 2016-05-28 | 1 | -2/+3 | |
| | ||||||
* | readme: Use "raised" instead of "thrown" | Nir Soffer | 2016-05-28 | 1 | -1/+1 | |
| | | | | Should be more familiar to the users of this library. | |||||
* | readme: Remove duplicate 'is thrown' | Nir Soffer | 2016-05-28 | 1 | -3/+3 | |
| | ||||||
* | Use log.warning instead of deprecated log.warn in example code | Ville Skyttä | 2016-05-21 | 1 | -2/+2 | |
| | ||||||
* | Spelling fixes | Ville Skyttä | 2016-05-21 | 2 | -3/+3 | |
| | ||||||
* | 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. | |||||
* | Fixes Reader.seek_monotonic(datetime.timedelta) | Michael Herold | 2015-12-10 | 1 | -1/+1 | |
| | ||||||
* | reader: avoid gcc warning | Zbigniew Jędrzejewski-Szmek | 2015-12-02 | 1 | -1/+1 | |
| | | | | | | | gcc warns that r might be uninitialized, because it doesn't know that r will be initialized in the 'if' statement. Initialize the variable to avoid the warning. | |||||
* | tests: mirror is-systemd-running test from systemdv231 | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 | |
| | ||||||
* | build-sys: make sure we use modules from the build dir | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 | |
| | | | | | When running form the top source directory, sometimes modules from systemd/ and not build/*/systemd/ were loaded. | |||||
* | build-sys: name html build directory after format | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 | |
| | | | | This way different outputs don't land in the same place. | |||||
* | Bump version to 231 | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -1/+1 | |
| | ||||||
* | build-sys: also put pytest.ini in the tarball | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -0/+1 | |
| | | | | Without this tests don't seem to run properly with a build dir. | |||||
* | docs: remove SD_MESSAGE_CONFIG_ERROR from list | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -1/+0 | |
| | | | | | This list should be auto-generated... Let's remove the ID that was removed from systemd from here too for now. | |||||
* | Add NEWS file | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 2 | -0/+30 | |
| | ||||||
* | build-sys: add utility target to run tests | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -0/+4 | |
| | ||||||
* | build-sys: add utility target to build TAGS | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 2 | -1/+6 | |
| | ||||||
* | Python2 does not have ConnectionError | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -5/+10 | |
| | ||||||
* | build-sys: include tests in installation | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -1/+2 | |
| | | | | | | This also allows tests to be run against he build directory: $ py.test-2.7 -v build/lib.linux-x86_64-2.7 docs $ py.test-3.4 -v build/lib.linux-x86_64-3.4 docs | |||||
* | tests: add tests for notify() | Zbigniew Jędrzejewski-Szmek | 2015-10-26 | 1 | -1/+36 | |
| | ||||||
* | daemon: wrap sd_pid_notify[_with_pids] | Zbigniew Jędrzejewski-Szmek | 2015-10-26 | 2 | -10/+79 | |
| | | | | Closes #8. | |||||
* | Merge branch 'tests' | Zbigniew Jędrzejewski-Szmek | 2015-10-25 | 6 | -170/+513 | |
|\ | ||||||
| * | 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. | |||||
| * | Do not assume specific output from the journal | Zbigniew Jędrzejewski-Szmek | 2015-10-25 | 1 | -2/+1 | |
| | | | | | | | | | | While we *usually* get those messages from udev, in many tests environments this will not be true, so just do not try to check the output at all. | |||||
| * | 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. | |||||
| * | journal: allow numbers in field identifiers | Zbigniew Jędrzejewski-Szmek | 2015-09-17 | 1 | -2/+2 | |
| | | ||||||
| * | tests: add tests for Reader initialization | Zbigniew Jędrzejewski-Szmek | 2015-09-17 | 2 | -1/+40 | |
| | | ||||||
| * | journal: reindent to 4 spaces | Zbigniew Jędrzejewski-Szmek | 2015-09-17 | 1 | -158/+156 | |
| | | ||||||
| * | tests: start adding tests for JournalHandler | Zbigniew Jędrzejewski-Szmek | 2015-09-17 | 1 | -0/+34 | |
| | | ||||||
| * | Normalize some strange indentation | Zbigniew Jędrzejewski-Szmek | 2015-09-08 | 1 | -7/+8 | |
| | | ||||||
| * | tests: add more tests for socket functions | Zbigniew Jędrzejewski-Szmek | 2015-09-06 | 1 | -1/+85 | |
| | | ||||||
| * | tests: adapt to python2.7 output again | Zbigniew Jędrzejewski-Szmek | 2015-09-05 | 1 | -3/+2 | |
| | | ||||||
| * | 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: fix test discovery by pytest | Zbigniew Jędrzejewski-Szmek | 2015-09-05 | 1 | -1/+2 | |
| | | ||||||
| * | tests: also collect doctests from rst | Zbigniew Jędrzejewski-Szmek | 2015-09-05 | 3 | -6/+40 | |
| | | | | | | | | There isn't much to test now, but it doesn't hurt to enable. | |||||
| * | tests: enable doctests in the sources | Zbigniew Jędrzejewski-Szmek | 2015-09-05 | 2 | -6/+14 | |
| | | | | | | | | | | | | | | | | | | Unfortunately the "standard" way to access the names in the defined module does not work. I find it nicer to explicitly import, e.g. from systemd import journal, because then the examples correspond more closely to what a user would use. The only exception is made for JournalHandler, because journal.JournalHandler is a tad to long. |