diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-14 11:57:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 11:57:14 +0100 |
commit | 0cba4a581a0365806249be51736e2463ec1fed68 (patch) | |
tree | 7ad1fcba0b00f28e471c84d7225259107d0b8503 /test/system | |
parent | 738d62ea960af439bd545820e1853cbd73464493 (diff) | |
parent | c69565d83c30c115330977aab5ff1d9c292f31bf (diff) | |
download | podman-0cba4a581a0365806249be51736e2463ec1fed68.tar.gz podman-0cba4a581a0365806249be51736e2463ec1fed68.tar.bz2 podman-0cba4a581a0365806249be51736e2463ec1fed68.zip |
Merge pull request #8327 from rhatdan/build
test for buildah version in container images.
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/070-build.bats | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats index 0741357ed..064cad965 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -221,6 +221,11 @@ EOF run_podman run --rm build_test pwd is "$output" "$workdir" "pwd command in container" + # Determine buildah version, so we can confirm it gets into Labels + run_podman info --format '{{ .Host.BuildahVersion }}' + is "$output" "[1-9][0-9.-]\+" ".Host.BuildahVersion is reasonable" + buildah_version=$output + # Confirm that 'podman inspect' shows the expected values # FIXME: can we rely on .Env[0] being PATH, and the rest being in order?? run_podman image inspect build_test @@ -239,6 +244,7 @@ Cmd[0] | /bin/mydefaultcmd Cmd[1] | $s_echo WorkingDir | $workdir Labels.$label_name | $label_value +Labels.\"io.buildah.version\" | $buildah_version " parse_table "$tests" | while read field expect; do |