Skip to content

Commit

Permalink
Merge pull request #7805 from Luap99/journald-test
Browse files Browse the repository at this point in the history
Journald log driver test
  • Loading branch information
openshift-merge-robot authored Sep 28, 2020
2 parents 6b803a6 + 1db49d9 commit e7e466e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/system/030-run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7e466e

Please sign in to comment.