Skip to content

Commit

Permalink
tests/kola: workaround early next builds zincati config
Browse files Browse the repository at this point in the history
Early `next` releases before [1] had auto-updates disabled too. Let's
drop that config if it exists.

[1] coreos@99eab31
  • Loading branch information
dustymabe committed Apr 17, 2023
1 parent 7ba21e7 commit 2969bcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/kola/upgrade/extended/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ if [ -f /etc/zincati/config.d/90-disable-auto-updates.toml ]; then
need_zincati_restart='true'
fi

# Early `next` releases before [1] had auto-updates disabled too. Let's
# drop that config if it exists.
# [1] https://github.com/coreos/fedora-coreos-config/commit/99eab318998441760cca224544fc713651f7a16d
if [ -f /etc/zincati/config.d/90-disable-on-non-production-stream.toml ]; then
rm -f /etc/zincati/config.d/90-disable-on-non-production-stream.toml
need_zincati_restart='true'
fi

get_booted_deployment_json() {
rpm-ostree status --json | jq -r '.deployments[] | select(.booted == true)'
}
Expand Down

0 comments on commit 2969bcc

Please sign in to comment.