Skip to content

Commit

Permalink
tests: minor fix for client-layering-upgrade
Browse files Browse the repository at this point in the history
Xerf to Jonathan's comment coreos#4806 (comment)
  • Loading branch information
HuijingHei committed Feb 2, 2024
1 parent aa4caed commit b92f95c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ cosaPod(runAsUser: 0, memory: "${mem}Mi", cpu: "${nhosts}") {
coreos-installer download -p qemu -f qcow2.xz -s testing --decompress
mv rpm-ostree-[0-9]*.rpm rpm-ostree-libs-[0-9]*.rpm /usr/lib/coreos-assembler/tests/kola/rpm-ostree/destructive/data/
""")
kola(cosaDir: "${env.WORKSPACE}", extraArgs: "--qemu-image ./fedora-coreos*.qcow2 --tag rpm-ostree-upgrade ext.rpm-ostree.destructive.client-layering-upgrade")
kola(cosaDir: "${env.WORKSPACE}", skipUpgrade: true, extraArgs: "--qemu-image ./fedora-coreos*.qcow2 --tag rpm-ostree-upgrade")
}
}
2 changes: 2 additions & 0 deletions tests/kolainst/destructive/client-layering-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
;;
"2")
client_side_layering_checking
booted_ref=$(rpm-ostree status --json | jq -r '.deployments[0].origin')
test "kola" == ${booted_ref}
echo "ok upgrade to another update"
;;
*) echo "unexpected mark: ${AUTOPKGTEST_REBOOT_MARK}"; exit 1;;
Expand Down

0 comments on commit b92f95c

Please sign in to comment.