summaryrefslogtreecommitdiff
path: root/pkg/machine/e2e/machine_test.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2022-06-30 14:08:05 -0500
committerBrent Baude <bbaude@redhat.com>2022-07-08 08:22:49 -0500
commit76d887c7702321894c28a7479e696ef45f36143c (patch)
treeb025322469b3fa44df2f45f46cbc6c0763b59f3f /pkg/machine/e2e/machine_test.go
parent6087fb2116aaeae995e8423872ffe637e8be128f (diff)
downloadpodman-76d887c7702321894c28a7479e696ef45f36143c.tar.gz
podman-76d887c7702321894c28a7479e696ef45f36143c.tar.bz2
podman-76d887c7702321894c28a7479e696ef45f36143c.zip
Fix machine tests
Catch up with regressions that have occurred since the tests were originally written. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/machine/e2e/machine_test.go')
-rw-r--r--pkg/machine/e2e/machine_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/machine/e2e/machine_test.go b/pkg/machine/e2e/machine_test.go
index 657014b05..7b063937d 100644
--- a/pkg/machine/e2e/machine_test.go
+++ b/pkg/machine/e2e/machine_test.go
@@ -22,7 +22,7 @@ func TestMain(m *testing.M) {
}
const (
- defaultStream string = "podman-testing"
+ defaultStream string = "testing"
)
var (
@@ -97,6 +97,9 @@ func setup() (string, *machineTestBuilder) {
if err := os.Setenv("HOME", homeDir); err != nil {
Fail("failed to set home dir")
}
+ if err := os.Setenv("XDG_RUNTIME_DIR", homeDir); err != nil {
+ Fail("failed to set xdg_runtime dir")
+ }
if err := os.Unsetenv("SSH_AUTH_SOCK"); err != nil {
Fail("unable to unset SSH_AUTH_SOCK")
}
@@ -120,9 +123,9 @@ func setup() (string, *machineTestBuilder) {
}
func teardown(origHomeDir string, testDir string, mb *machineTestBuilder) {
- s := new(stopMachine)
+ r := new(rmMachine)
for _, name := range mb.names {
- if _, err := mb.setName(name).setCmd(s).run(); err != nil {
+ if _, err := mb.setName(name).setCmd(r.withForce()).run(); err != nil {
fmt.Printf("error occurred rm'ing machine: %q\n", err)
}
}