diff --git a/tests/plat/testdriver.sh b/tests/plat/testdriver.sh index 1c57ee163..272c6b2b7 100755 --- a/tests/plat/testdriver.sh +++ b/tests/plat/testdriver.sh @@ -15,7 +15,7 @@ trap "rm -f $pidfile" EXIT case $method in qemu-system-*) - if ! command -v $method 2>/dev/null; then + if ! command -v $method >/dev/null 2>&1 ; then echo "Warning: $method not installed, skipping test" exit 0 fi @@ -33,7 +33,7 @@ case $method in ;; qemu-*) - if ! command -v $method 2>/dev/null; then + if ! command -v $method >/dev/null 2>&1 ; then echo "Warning: $method not installed, skipping test" exit 0 fi