Commit graph

10 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
a54a7a2f51 Update to constants from systemd-233
In systemd-233 the format of the constants file changed to use
SD_ID128_MAKE_STR macro and long lines are broken with '\'.
Doing this in sed is too anyoing — add a simple python script to
do the processing.
2017-03-25 21:33:05 -04:00
Zbigniew Jędrzejewski-Szmek
5aab3fc3b4 tests: move login tests from doctest to separate file
This way we can skip ENOENT (which happens in containers).
While at it, let's extend the tests a bit, so that we at least
call all functions and check the type of the return value.

Also, drop '.nspawn' from the machine name, nspawn doesn't
use that suffix any more.
2017-03-12 12:26:51 -04:00
Zbigniew Jędrzejewski-Szmek
276f137b57 id128: add SD_MESSAGE_TRUNCATED_CORE from upcoming systemd-232 2016-10-17 04:16:43 -04:00
Zbigniew Jędrzejewski-Szmek
416efbf411 docs: autoregenerate id128.rst 2016-09-21 20:56:17 -04:00
Zbigniew Jędrzejewski-Szmek
02b9432e73 reader: add SD_JOURNAL_OS_ROOT and rework flag passing
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).
2016-09-21 15:32:58 -04:00
Zbigniew Jędrzejewski-Szmek
8d55a298d9 docs: remove SD_MESSAGE_CONFIG_ERROR from list
This list should be auto-generated... Let's remove the
ID that was removed from systemd from here too for now.
2015-10-27 00:26:37 -04:00
Zbigniew Jędrzejewski-Szmek
26a9c1f18a tests: also collect doctests from rst
There isn't much to test now, but it doesn't hurt to enable.
2015-09-05 13:33:40 +02:00
Zbigniew Jędrzejewski-Szmek
c030a453c2 docs: avoid warning about duplicate target name 2015-07-08 15:17:00 -04:00
Zbigniew Jędrzejewski-Szmek
2f5a390239 docs: update links in documentation
This is a standalone package now, but let's keep the links
to systemd itself.
2015-07-08 15:12:25 -04:00
Zbigniew Jędrzejewski-Szmek
1ad7f56b90 Move docs to top level and include in manifest 2015-07-08 13:45:03 -04:00