Commit 92a1afcb authored by Andrew Jones's avatar Andrew Jones Committed by Paolo Bonzini
Browse files

run: check DRYRUN



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

Signed-off-by: Andrew Jones's avatarAndrew Jones <drjones@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 143fb7b5
......@@ -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
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment