diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-28 21:04:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 21:04:55 +0000 |
commit | e7e466e0c80339e252d748e5aa5d54a6962da7b4 (patch) | |
tree | c70824aa867776234a69cdc75b58b5b2f1fbd60d /test | |
parent | 6b803a66fa1cd8777f54ed4b4da791f0e7657a60 (diff) | |
parent | 1db49d95b77aea8bd327e42fe89fb9ea3f8a67a1 (diff) | |
download | podman-e7e466e0c80339e252d748e5aa5d54a6962da7b4.tar.gz podman-e7e466e0c80339e252d748e5aa5d54a6962da7b4.tar.bz2 podman-e7e466e0c80339e252d748e5aa5d54a6962da7b4.zip |
Merge pull request #7805 from Luap99/journald-test
Journald log driver test
Diffstat (limited to 'test')
-rw-r--r-- | test/system/030-run.bats | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 11edaf11c..6430c80fb 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -387,5 +387,18 @@ json-file | f "--log-driver InvalidDriver" } +@test "podman run --log-driver journald" { + skip_if_remote "We cannot read journalctl over remote." + + msg=$(random_string 20) + pidfile="${PODMAN_TMPDIR}/$(random_string 20)" + + run_podman run --name myctr --log-driver journald --conmon-pidfile $pidfile $IMAGE echo $msg + + journalctl --output cat _PID=$(cat $pidfile) + is "$output" "$msg" "check that journalctl output equals the container output" + + run_podman rm myctr +} # vim: filetype=sh |