diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 95cdabe41..b3da46191 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -113,7 +113,7 @@ jobs: - uses: actions-ecosystem/action-get-latest-tag@v1 id: get-latest-tag - name: setup podman - run: sudo apt install podman && systemctl --user start podman.socket && ls $XDG_RUNTIME_DIR/podman/podman.sock + run: sudo apt install podman && systemctl --user start podman.socket && systemctl --user status podman.socket - name: e2e test run: make e2e-cli-test env: diff --git a/e2e/cli/context_test.go b/e2e/cli/context_test.go index 93fbbc1d2..35f31e075 100644 --- a/e2e/cli/context_test.go +++ b/e2e/cli/context_test.go @@ -123,7 +123,7 @@ var _ = Describe("home context", func() { } originalEnv := os.Getenv("DOCKER_HOST") BeforeAll(func() { - os.Setenv("DOCKER_HOST", "unix:///run/user/1000/podman/podman.sock") + os.Setenv("DOCKER_HOST", "unix://"+os.Getenv("XDG_RUNTIME_DIR")+"/podman/podman.sock") err := home.GetManager().ContextCreate(c, true) Expect(err).NotTo(HaveOccurred()) })