mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #7805 from Luap99/journald-test
Journald log driver test
This commit is contained in:
@ -387,5 +387,18 @@ json-file | f
|
|||||||
"--log-driver InvalidDriver"
|
"--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
|
# vim: filetype=sh
|
||||||
|
Reference in New Issue
Block a user