mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
e2e: adapt play kube test on remote rootless
Use podmanTest.PodmanBinary because podman-remote unshare cannot be used. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -4396,10 +4396,12 @@ ENV OPENJ9_JAVA_OPTIONS=%q
|
|||||||
initialUsernsConfig, err := os.ReadFile("/proc/self/uid_map")
|
initialUsernsConfig, err := os.ReadFile("/proc/self/uid_map")
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
if isRootless() {
|
if isRootless() {
|
||||||
unshare := podmanTest.Podman([]string{"unshare", "cat", "/proc/self/uid_map"})
|
// Use podmanTest.PodmanBinary because podman-remote unshare cannot be used
|
||||||
unshare.WaitWithDefaultTimeout()
|
cmd := exec.Command(podmanTest.PodmanBinary, "unshare", "cat", "/proc/self/uid_map")
|
||||||
Expect(unshare).Should(Exit(0))
|
session, err := Start(cmd, GinkgoWriter, GinkgoWriter)
|
||||||
initialUsernsConfig = unshare.Out.Contents()
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
Eventually(session, DefaultWaitTimeout).Should(Exit(0))
|
||||||
|
initialUsernsConfig = session.Out.Contents()
|
||||||
}
|
}
|
||||||
|
|
||||||
pod := getPod()
|
pod := getPod()
|
||||||
|
Reference in New Issue
Block a user