Skip to content

Commit f84f4a9

Browse files
committed
pkg/machine/e2e: use tmp file for connections
On linux and macos the connections are stored under the home dir by default so it is not a problem there but on windows we first check the APPDATA env and use this dir as config storage. This has the problem that it is not cleaned up after each test as such connections might leak into the following test causing failues there. Fixes #22844 Signed-off-by: Paul Holzinger <[email protected]>
1 parent 672c6c8 commit f84f4a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: pkg/machine/e2e/machine_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ func setup() (string, *machineTestBuilder) {
111111
if err := os.Unsetenv("SSH_AUTH_SOCK"); err != nil {
112112
Fail("unable to unset SSH_AUTH_SOCK")
113113
}
114+
if err := os.Setenv("PODMAN_CONNECTIONS_CONF", filepath.Join(homeDir, "connections.json")); err != nil {
115+
Fail("failed to set PODMAN_CONNECTIONS_CONF")
116+
}
114117
mb, err := newMB()
115118
if err != nil {
116119
Fail(fmt.Sprintf("failed to create machine test: %q", err))

0 commit comments

Comments
 (0)