Skip to content

Commit

Permalink
test: ignore return code on check-update (influxdata#11445)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored Jul 7, 2022
1 parent 6aad0a6 commit 8f789c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/package_lxd_test/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8f789c5

Please sign in to comment.