tests/layering-fedorainfra: Update rpm-ostree build

The previous build was GC'd; unfortunately it's very nontrivial
to make this test truly robust over time because FCOS changes;
we might sometimes have an outstanding update, other times might
not etc.

Let's just sanity check the commands; ultimately they're
thin wrappers around just downloading packages so we don't need
deep checks.
This commit is contained in:
Colin Walters 2021-01-27 21:04:40 +00:00 committed by OpenShift Merge Robot
parent c98c227c0f
commit cc230e25a0

View File

@ -8,13 +8,12 @@ set -euo pipefail
cd $(mktemp -d) cd $(mktemp -d)
# bodhi update for rpm-ostree (Fedora 33) # bodhi update for rpm-ostree (Fedora 33)
rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2020-6e743def1d rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2021-e55da2fc78
rpm-ostree status > status.txt rpm-ostree status > status.txt
assert_file_has_content_literal status.txt "Diff: 2 downgraded"
rpm-ostree cleanup -p rpm-ostree cleanup -p
# Same build directly via Koji # A build directly via Koji (this is rpm-ostree-2021.1-2.fc33 - FIXME change
rpm-ostree override replace https://koji.fedoraproject.org/koji/buildinfo?buildID=1637715 # this to pull latest tagged...which would require learning more of the Koji API
rpm-ostree status > status.txt # *or* injecting it from the build container)
assert_file_has_content_literal status.txt "Diff: 2 downgraded" rpm-ostree override replace https://koji.fedoraproject.org/koji/buildinfo?buildID=1671410
echo "ok" echo "ok"