share/containers/: trap(1) to see the cmocka logs

Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2024-02-28 12:10:17 +01:00
parent e59a39663d
commit d13844408c
3 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ FROM "${OS_IMAGE}" AS build
RUN apk add \
autoconf \
automake \
bash \
build-base \
byacc \
cmocka-dev \
@ -27,7 +28,7 @@ RUN ./autogen.sh \
--with-yescrypt
RUN make -kj4 || true
RUN make
RUN make check
RUN bash -c "trap 'cat <tests/unit/test-suite.log >&2' ERR; make check;"
RUN make install
FROM scratch AS export

View File

@ -25,7 +25,7 @@ RUN ./autogen.sh \
--with-yescrypt
RUN make -kj4 || true
RUN make
RUN make check
RUN bash -c "trap 'cat <tests/unit/test-suite.log >&2' ERR; make check;"
RUN make install
FROM scratch AS export

View File

@ -27,7 +27,7 @@ RUN ./autogen.sh \
--enable-logind=no
RUN make -kj4 || true
RUN make
RUN make check
RUN bash -c "trap 'cat <tests/unit/test-suite.log >&2' ERR; make check;"
RUN make install
FROM scratch AS export