diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-25 10:46:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 10:46:44 -0400 |
commit | bce8331528c186ef2234a3cfe6c7d0e09da79bdd (patch) | |
tree | 5fe8f72f2c10662d70a00105c3efb8225f2b63e4 /test/system | |
parent | 6fa6470d24231dccafbf4396e7cb798a906af522 (diff) | |
parent | 8e66795530e91ebfe211e6ac26180e70d68e7953 (diff) | |
download | podman-bce8331528c186ef2234a3cfe6c7d0e09da79bdd.tar.gz podman-bce8331528c186ef2234a3cfe6c7d0e09da79bdd.tar.bz2 podman-bce8331528c186ef2234a3cfe6c7d0e09da79bdd.zip |
Merge pull request #8096 from ypu/log-driver-test
Tests: Check different log driver can work with podman logs
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/030-run.bats | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 8712dc72d..48f25f8d3 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -413,6 +413,17 @@ json-file | f else is "$output" "" "LogPath (driver=$driver)" fi + + if [[ $driver != 'none' ]]; then + run_podman logs myctr + is "$output" "$msg" "check that podman logs works as expected" + else + run_podman 125 logs myctr + if ! is_remote; then + is "$output" ".*this container is using the 'none' log driver, cannot read logs.*" \ + "podman logs does not work with none log driver" + fi + fi run_podman rm myctr done < <(parse_table "$tests") |