mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
make remotesystem: fail early if serial tests fail
Exit status was being lost due to sequential bats invocations. Solution: preserve exit status of first (serial) run, and skip parallel tests if those fail. I am so, so sorry. Signed-off-by: Eduardo Santiago <ed@edsantiago.com>
This commit is contained in:
7
Makefile
7
Makefile
@ -737,8 +737,11 @@ remotesystem:
|
||||
exit 1;\
|
||||
fi;\
|
||||
env PODMAN="$(CURDIR)/bin/podman-remote" bats -T --filter-tags '!ci:parallel' test/system/ ;\
|
||||
env PODMAN="$(CURDIR)/bin/podman-remote" bats -T --filter-tags ci:parallel -j $$(nproc) test/system/ ;\
|
||||
rc=$$?;\
|
||||
rc=$$?; \
|
||||
if [ $$rc -eq 0 ]; then \
|
||||
env PODMAN="$(CURDIR)/bin/podman-remote" bats -T --filter-tags ci:parallel -j $$(nproc) test/system/ ;\
|
||||
rc=$$?;\
|
||||
fi; \
|
||||
kill %1;\
|
||||
else \
|
||||
echo "Skipping $@: 'timeout -v' unavailable'";\
|
||||
|
Reference in New Issue
Block a user