test: ignore return code on check-update (#11445)

This commit is contained in:
Joshua Powers 2022-07-07 08:43:41 -06:00 committed by GitHub
parent 6aad0a6349
commit 8f789c5cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -175,7 +175,8 @@ func (c *Container) configureYum() error {
return err
}
return c.client.Exec(c.Name, "yum", "check-update")
// will return a non-zero return code if there are packages to update
return c.client.Exec(c.Name, "bash", "-c", "yum check-update || true")
}
// Create config and update dnf
@ -189,7 +190,8 @@ func (c *Container) configureDnf() error {
return err
}
return c.client.Exec(c.Name, "dnf", "check-update")
// will return a non-zero return code if there are packages to update
return c.client.Exec(c.Name, "bash", "-c", "dnf check-update || true")
}
// Create config and update zypper