mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-01-06 07:20:14 +01:00
test-generated-hwdb: Add more debug on error
This commit is contained in:
parent
e782de3747
commit
3b3fc573da
1 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
[ -x "$UDEV_HWDB" ] || exit 1
|
||||
if [ ! -x "$UDEV_HWDB" ]; then
|
||||
echo "E: UDEV_HWDB (${UDEV_HWDB}) unset or not executable."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$UDEV_HWDB_CHECK_CONTENTS" == 1 ]; then
|
||||
generated_rules=$(mktemp "${TMPDIR:-/tmp}/libfprint-XXXXXX.hwdb")
|
||||
|
|
@ -10,6 +13,10 @@ else
|
|||
fi
|
||||
|
||||
$UDEV_HWDB > "$generated_rules"
|
||||
if [ $? != 0 ]; then
|
||||
echo "E: UDEV_HWDB (${UDEV_HWDB}) failed to run without error."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$UDEV_HWDB_CHECK_CONTENTS" != 1 ]; then
|
||||
exit 77
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue