From 2dc81fc9dd3b3f3b8005a10f8c76a8015560492f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 28 Jul 2011 09:41:07 +0000 Subject: [PATCH] * Shut up warnings about QEMU_OPTS being undefined. svn path=/nixos/trunk/; revision=27982 --- lib/test-driver/Machine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test-driver/Machine.pm b/lib/test-driver/Machine.pm index 68b374c86aa7..2c6646eee336 100644 --- a/lib/test-driver/Machine.pm +++ b/lib/test-driver/Machine.pm @@ -126,7 +126,7 @@ sub start { $ENV{QEMU_OPTS} = "-no-reboot -monitor unix:./monitor -chardev socket,id=shell,path=./shell " . "-device virtio-serial -device virtconsole,chardev=shell " . - ($showGraphics ? "-serial stdio" : "-nographic"); + ($showGraphics ? "-serial stdio" : "-nographic") . " " . ($ENV{QEMU_OPTS} || ""); $ENV{QEMU_KERNEL_PARAMS} = "hostTmpDir=$ENV{TMPDIR}"; chdir $self->{stateDir} or die; exec $self->{startCommand};