Commit 90270e30 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: mmdebstrap job: show results in a more human friendly way



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 4c7c909d
......@@ -44,17 +44,24 @@ sudo mmdebstrap $SUITE > $BUILDDIR/b1/mmdebstrap/${SUITE}.tar
output_echo "Running mmdebstrap $SUITE for the second run."
sudo mmdebstrap $SUITE > $BUILDDIR/b2/mmdebstrap/${SUITE}.tar
# show sha256sum results
mv $BUILDDIR/b1 $BUILDDIR/b2 $RESULTSDIR/
sha256sum $RESULTSDIR/b1/mmdebstrap/${SUITE}.tar $RESULTSDIR/b2/mmdebstrap/${SUITE}.tar
# Run diffoscope on the images
output_echo "Calling diffoscope on the results."
TIMEOUT="240m"
DIFFOSCOPE="$(schroot --directory /tmp -c chroot:jenkins-reproducible-${DBDSUITE}-diffoscope diffoscope -- --version 2>&1)"
TMPDIR=${RESULTSDIR}
call_diffoscope mmdebstrap ${SUITE}.tar
# show human readable results
if diff $RESULTSDIR/b1/mmdebstrap/${SUITE}.tar RESULTSDIR/b2/mmdebstrap/${SUITE}.tar ; then
echo "Success: mmdebstrap of $SUITE is reproducible today."
else
echo "Warning: mmdebstrap of $SUITE is not reproducible."
# Run diffoscope on the images
output_echo "Calling diffoscope on the results."
TIMEOUT="240m"
DIFFOSCOPE="$(schroot --directory /tmp -c chroot:jenkins-reproducible-${DBDSUITE}-diffoscope diffoscope -- --version 2>&1)"
TMPDIR=${RESULTSDIR}
call_diffoscope mmdebstrap ${SUITE}.tar
fi
cleanup success
# Turn off the trap
trap - INT TERM EXIT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment