test-generated-hwdb: Just use diff to compare for being more informative

This commit is contained in:
Marco Trevisan (Treviño) 2021-01-21 15:01:55 +01:00 committed by Benjamin Berg
parent 63bfaf4f60
commit 170924ee4f

View file

@ -15,7 +15,7 @@ if [ "$UDEV_HWDB_CHECK_CONTENTS" != 1 ]; then
exit 77
fi
if ! cmp "$MESON_SOURCE_ROOT/data/autosuspend.hwdb" "$generated_rules"; then
if ! diff -u "$MESON_SOURCE_ROOT/data/autosuspend.hwdb" "$generated_rules"; then
echo "E: Autosuspend file needs to be re-generated!"
echo " ninja -C $MESON_BUILD_ROOT libfprint/sync-udev-hwdb"
exit 1