tests: Turn off gpg verification for dev builds
authorColin Walters <walters@verbum.org>
Mon, 27 Nov 2023 15:59:04 +0000 (10:59 -0500)
committerColin Walters <walters@verbum.org>
Mon, 27 Nov 2023 15:59:56 +0000 (10:59 -0500)
Right now `ostree admin status` errors out in this case, but
`rpm-ostree status` doesn't.  The former behavior is probably
more of a bug, work around it for now.

tests/kolainst/destructive/staged-deploy.sh

index ff6f8d7a8dc2374b5c024970a5cc7d413fe53258..282990b7a3ae27ddc6a69a21057d39f23c73ab19 100755 (executable)
@@ -8,6 +8,9 @@ prepare_tmpdir
 
 case "${AUTOPKGTEST_REBOOT_MARK:-}" in
   "")
+  # Need to disable gpg verification for test builds
+  sed -i -e 's,gpg-verify=true,gpg-verify=false,' /etc/ostree/remotes.d/*.conf
+
   # Test our generator
   test -f /run/systemd/generator/multi-user.target.wants/ostree-finalize-staged.path
   test -f /run/systemd/generator/local-fs.target.requires/ostree-remount.service