mirror of
https://github.com/containers/podman.git
synced 2025-12-12 09:50:25 +08:00
Fix Podman logs reading journald
A podman could not read logs written to journald properly, due to a tail config bug. Added a system test to check this - since e2e tests don't like journald Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
@@ -50,4 +50,15 @@ ${cid[1]} c
|
||||
${cid[0]} d" "Sequential output from logs"
|
||||
}
|
||||
|
||||
@test "podman logs over journald" {
|
||||
msg=$(random_string 20)
|
||||
|
||||
run_podman run --name myctr --log-driver journald $IMAGE echo $msg
|
||||
|
||||
run_podman logs myctr
|
||||
is "$output" "$msg" "check that log output equals the container output"
|
||||
|
||||
run_podman rm myctr
|
||||
}
|
||||
|
||||
# vim: filetype=sh
|
||||
|
||||
Reference in New Issue
Block a user