podman-compose/tests/build_fail
BugFest 5d279c4948 Build-fail test example
Signed-off-by: BugFest <bugfest.dev@pm.me>
2023-04-12 22:25:33 +03:00
..
context Build-fail test example 2023-04-12 22:25:33 +03:00
docker-compose.yml Build-fail test example 2023-04-12 22:25:33 +03:00
README.md Exit code managed at PodmanCompose.run() 2023-04-12 22:25:33 +03:00

Test podman-compose with build (fail scenario)

podman-compose build || echo $?

expected output would be something like

STEP 1/3: FROM busybox
STEP 2/3: RUN this_command_does_not_exist
/bin/sh: this_command_does_not_exist: not found
Error: building at STEP "RUN this_command_does_not_exist": while running runtime: exit status 127

exit code: 127

Expected podman-compose exit code:

echo $?
127