mirror of
https://github.com/containers/podman.git
synced 2026-03-30 12:32:47 -04:00
tests/e2e: Do not try to list /proc/acpi on non-amd64
Signed-off-by: Ricardo Branco <rbranco@suse.de>
This commit is contained in:
@@ -495,10 +495,12 @@ var _ = Describe("Podman run", func() {
|
||||
Expect(session).Should(ExitCleanly())
|
||||
Expect(session.OutputToStringArray()).Should(HaveLen(1))
|
||||
|
||||
session = podmanTest.Podman([]string{"run", "--security-opt", "unmask=/proc/a*", ALPINE, "ls", "/proc/acpi"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitCleanly())
|
||||
Expect(session.OutputToString()).To(Not(BeEmpty()))
|
||||
if podmanTest.Host.Arch == "amd64" {
|
||||
session = podmanTest.Podman([]string{"run", "--security-opt", "unmask=/proc/a*", ALPINE, "ls", "/proc/acpi"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitCleanly())
|
||||
Expect(session.OutputToString()).To(Not(BeEmpty()))
|
||||
}
|
||||
})
|
||||
|
||||
It("podman run powercap is masked", func() {
|
||||
@@ -2264,9 +2266,7 @@ WORKDIR /madethis`, BB)
|
||||
})
|
||||
|
||||
It("podman run check personality support", func() {
|
||||
if podmanTest.Host.Arch != "amd64" {
|
||||
Skip("test only valid on amd64")
|
||||
}
|
||||
SkipIfNotAMD64()
|
||||
session := podmanTest.Podman([]string{"run", "--personality=LINUX32", "--name=testpersonality", ALPINE, "uname", "-a"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitCleanly())
|
||||
|
||||
Reference in New Issue
Block a user