coverage.sh: in addition to cmp, run diffoscope and base64 and xxd

pull/1/head
parent 6bbf3943d1
commit 503faaccf8
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -117,7 +117,28 @@ tar -C /tmp/debian-$dist-debootstrap -xf "cache/debian-$dist-$variant.tar"
# delete the directory
tar -C /tmp/debian-$dist-debootstrap -cf dev1.tar ./dev
tar -C /tmp/debian-$dist-mm -cf dev2.tar ./dev
cmp dev1.tar dev2.tar
ret=0
cmp dev1.tar dev2.tar || ret=\$?
if [ "\$ret" -ne 0 ]; then
if type diffoscope >/dev/null; then
diffoscope dev1.tar dev2.tar
else
echo "no diffoscope installed" >&2
fi
if type base64 >/dev/null; then
base64 dev1.tar
base64 dev2.tar
else
echo "no base64 installed" >&2
fi
if type xxd >/dev/null; then
xxd dev1.tar
xxd dev2.tar
else
echo "no xxd installed" >&2
fi
exit 1
fi
rm dev1.tar dev2.tar
rm -r /tmp/debian-$dist-debootstrap/dev /tmp/debian-$dist-mm/dev

Loading…
Cancel
Save