diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-23 11:34:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 11:34:42 -0400 |
commit | e8fc990aadf438e3b138d77b1bb4500cc60a7738 (patch) | |
tree | 641a8b9e92c3a986d38a42068cc092af6b72a736 /test/system | |
parent | c2beea695857b71250c87eb9ab799f7773b8d251 (diff) | |
parent | 1199733754b1185d0d2a7a3d832c57565864d0f4 (diff) | |
download | podman-e8fc990aadf438e3b138d77b1bb4500cc60a7738.tar.gz podman-e8fc990aadf438e3b138d77b1bb4500cc60a7738.tar.bz2 podman-e8fc990aadf438e3b138d77b1bb4500cc60a7738.zip |
Merge pull request #11654 from Luap99/health-docker
podman inspect add State.Health field for docker compat
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/220-healthcheck.bats | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/system/220-healthcheck.bats b/test/system/220-healthcheck.bats index e416629e6..e5a0e7e88 100644 --- a/test/system/220-healthcheck.bats +++ b/test/system/220-healthcheck.bats @@ -12,13 +12,13 @@ function _check_health { local testname="$1" local tests="$2" - run_podman inspect --format json healthcheck_c + run_podman inspect --format "{{json .State.Healthcheck}}" healthcheck_c parse_table "$tests" | while read field expect;do # (kludge to deal with parse_table and empty strings) if [ "$expect" = "''" ]; then expect=""; fi - actual=$(jq -r ".[0].State.Healthcheck.$field" <<<"$output") + actual=$(jq -r ".$field" <<<"$output") is "$actual" "$expect" "$testname - .State.Healthcheck.$field" done } |