From 4f446467c867e25a50a340a89dbc59cb8b8063f2 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 26 Nov 2016 21:50:56 +0100 Subject: [PATCH] Suppress spurious message when testdriver probes for a testing method. --- tests/plat/testdriver.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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