Only execute the test if DRYRUN isn't set to yes. This is used
by mkstandalone.sh

Signed-off-by: Andrew Jones <drjo...@redhat.com>
---
 arm/run | 12 +++++++-----
 x86/run | 11 +++++++----
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/arm/run b/arm/run
index 662a8564674a3..8cc2fa2571967 100755
--- a/arm/run
+++ b/arm/run
@@ -44,9 +44,11 @@ fi
 
 command="$qemu $M -cpu $processor $chr_testdev"
 command+=" -display none -serial stdio -kernel"
-
 echo $command "$@"
-$command "$@"
-ret=$?
-echo Return value from qemu: $ret
-exit $ret
+
+if [ "$DRYRUN" != "yes" ]; then
+       $command "$@"
+       ret=$?
+       echo Return value from qemu: $ret
+       exit $ret
+fi
diff --git a/x86/run b/x86/run
index 5281fca2125d8..b4a35b2332846 100755
--- a/x86/run
+++ b/x86/run
@@ -44,7 +44,10 @@ fi
 
 command="${qemu} -enable-kvm $pc_testdev -vnc none -serial stdio $pci_testdev 
-kernel"
 echo ${command} "$@"
-${command} "$@"
-ret=$?
-echo Return value from qemu: $ret
-exit $ret
+
+if [ "$DRYRUN" != "yes" ]; then
+       ${command} "$@"
+       ret=$?
+       echo Return value from qemu: $ret
+       exit $ret
+fi
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to