Skip to content

Commit

Permalink
bud-...-base-as-default : fix dup-arm flake
Browse files Browse the repository at this point in the history
Some sort of weird error with duplicate "arm" string in
manifest output. Started blowing up in podman CI today.

Fixes: containers#4520

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Jan 17, 2023
1 parent c541c35 commit 836f021
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/bud.bats
Original file line number Diff line number Diff line change
Expand Up @@ -5309,9 +5309,11 @@ _EOF
-f $BUDFILES/all-platform/Containerfile.default-arg \
$BUDFILES/all-platform

# #4520: 'sort -u' needed because sometimes there's a duplicate "arm" in
# manifest output; on 2023-01-16 this started blowing up in podman CI.
run_buildah manifest inspect $outputlist
manifests=$(jq -r '.manifests[].platform.architecture' <<<"$output" |sort|fmt)
assert "$manifests" = "386 amd64 arm arm arm64 ppc64le s390x" "arch list in manifest"
manifests=$(jq -r '.manifests[].platform.architecture' <<<"$output" |sort -u|fmt)
assert "$manifests" = "386 amd64 arm arm64 ppc64le s390x" "arch list in manifest"
}

@test "bud-multiple-platform for --all-platform with additional-build-context" {
Expand Down

0 comments on commit 836f021

Please sign in to comment.