mirror of
https://github.com/containers/podman.git
synced 2025-10-13 09:15:20 +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:
@ -46,6 +46,7 @@ func ExitCode(err error) int {
|
||||
e := strings.ToLower(err.Error())
|
||||
logrus.Debugf("ExitCode msg: %q", e)
|
||||
if strings.Contains(e, "not found") ||
|
||||
strings.Contains(e, "executable path is empty") ||
|
||||
strings.Contains(e, "no such file") {
|
||||
return ExecErrorCodeNotFound
|
||||
}
|
||||
|
Reference in New Issue
Block a user