mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-27 10:07:49 +00: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:
parent
14dd313d41
commit
67ccf4940c
1 changed files with 7 additions and 7 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue