From 153996ec8332400deb2d04a3dbda3edb1c518b13 Mon Sep 17 00:00:00 2001 From: Josh Powers Date: Thu, 30 Jun 2022 07:47:41 -0600 Subject: [PATCH] test: run check-update on dnf/yum Tests were run using dnf/yum update, which will not only check for updates, but also make updates. This is not the behavior wanted on the test, instead, the desire is only to update the package listings and check for updates. This is done with check-update. --- tools/package_lxd_test/container.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/package_lxd_test/container.go b/tools/package_lxd_test/container.go index bcba9ad5c5db7..536b95df9cdf4 100644 --- a/tools/package_lxd_test/container.go +++ b/tools/package_lxd_test/container.go @@ -175,7 +175,7 @@ func (c *Container) configureYum() error { return err } - return c.client.Exec(c.Name, "yum", "update") + return c.client.Exec(c.Name, "yum", "check-update") } // Create config and update dnf @@ -189,7 +189,7 @@ func (c *Container) configureDnf() error { return err } - return c.client.Exec(c.Name, "dnf", "update") + return c.client.Exec(c.Name, "dnf", "check-update") } // Create config and update zypper