case $method in
qemu-system-*)
- if ! hash $method 2>/dev/null; then
+ if ! command -v $method 2>/dev/null; then
echo "Warning: $method not installed, skipping test"
exit 0
fi
;;
qemu-*)
- if ! hash $method 2>/dev/null; then
+ if ! command -v $method 2>/dev/null; then
echo "Warning: $method not installed, skipping test"
exit 0
fi
esac
( grep -q @@FAIL $result || ! grep -q @@FINISHED $result ) && cat $result && exit 1
-exit 0
\ No newline at end of file
+exit 0