mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-13 23:45:07 +07:00
test/test-functions: be more verbose about skipping tests
This commit is contained in:
parent
78cd73fcf6
commit
33a5e20ffa
@ -575,8 +575,21 @@ inst_libdir_file() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_test() {
|
do_test() {
|
||||||
[[ $UID != "0" ]] && exit 0
|
if [[ $UID != "0" ]]; then
|
||||||
command -v qemu-kvm &>/dev/null || exit 0
|
echo "TEST: $TEST_DESCRIPTION [SKIPPED]: not root" >&2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v qemu-kvm &>/dev/null; then
|
||||||
|
echo "TEST: $TEST_DESCRIPTION [SKIPPED]: no qemu-kvm found" >&2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [[ -c /dev/kvm ]]; then
|
||||||
|
echo "TEST: $TEST_DESCRIPTION [SKIPPED]: /dev/kvm not found" >&2
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Detect lib paths
|
# Detect lib paths
|
||||||
[[ $libdir ]] || for libdir in /lib64 /lib; do
|
[[ $libdir ]] || for libdir in /lib64 /lib; do
|
||||||
[[ -d $libdir ]] && libdirs+=" $libdir" && break
|
[[ -d $libdir ]] && libdirs+=" $libdir" && break
|
||||||
|
Loading…
Reference in New Issue
Block a user