]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: use systemd-journal-remote for journal copying, support $ARTIFACT_DIRECTORY
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Mar 2020 19:29:52 +0000 (21:29 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Mar 2020 10:31:10 +0000 (12:31 +0200)
commitf9eb2d51dadc730b5de97e4c7780450ec91c0d2a
tree967d9fa254d66563d71bcc814314503993c8d612
parent8943daf813221345580abe8ebaddcf10e2752287
test: use systemd-journal-remote for journal copying, support $ARTIFACT_DIRECTORY

Using s-j-remote fixes the following issue: when coalescing files from multiple
inputs, simply copying all files with into the the same directory might
potentially mess things up, because a newer system.journal might overwrite an
older journal. This happens because we run multiple tests from the same image,
and need to clean out the directory after each run.

By using systemd-journal-remote, we nicely coalesce all files. This has the
advantage that if there aren't too many logs, we end up with just one journal
file.

ARTIFACT_DIRECTORY is for ubuntuautopackagetests, where the journal files are
copied to a separate directory to preserve after tests have been run. This
functionality can now be recreated by setting
ARTIFACT_DIRECTORY=$AUTOPKGTEST_ARTIFACTS.
test/test-functions