mirror of
https://github.com/containers/podman.git
synced 2025-11-28 09:09:44 +08:00
test: adapt tests new crun error messages
Needed-by: https://github.com/containers/crun/pull/1672 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -22,7 +22,7 @@ var _ = Describe("Podman run exit", func() {
|
||||
It("podman run exit ExecErrorCodeCannotInvoke", func() {
|
||||
result := podmanTest.Podman([]string{"run", ALPINE, "/etc"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result).Should(ExitWithError(define.ExecErrorCodeCannotInvoke, "open executable: Operation not permitted: OCI permission denied"))
|
||||
Expect(result).Should(ExitWithErrorRegex(define.ExecErrorCodeCannotInvoke, ".*(open executable|the path `/etc` is not a regular file): Operation not permitted: OCI permission denied.*"))
|
||||
})
|
||||
|
||||
It("podman run exit ExecErrorCodeNotFound", func() {
|
||||
|
||||
Reference in New Issue
Block a user