testsuite: If validation result is not as expected, log the diff

It's easier to diagnose test failures if everything (within reason)
is in the build log.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2024-09-03 02:49:06 +01:00
parent 6e54589d9e
commit 5c3ea03dca

View File

@ -32,6 +32,7 @@ for t in ${TESTS[*]}; do
echo "ok $I $name"
rm "$diff"
else
sed -e 's/^/# /' < "$diff"
echo "not ok $I $name"
cp "$expected" "$ref"
fi