From: Wei Liu Date: Mon, 15 Jun 2015 13:52:37 +0000 (+0100) Subject: Stubdom test case X-Git-Tag: wip.libvirt-v3-base~146 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d9ca4dfa8c66b43d34ae63f7a921a0c75d826dbe;p=people%2Fliuw%2Fosstest.git Stubdom test case Currently only QEMU traditional supports stubdom and we want to eventually do away with non-XSM test cases, so we only create test-amd64-{i386,amd64}-xl-qemut-stubdom-debianhvm-amd64-xsm Note that stubdom only supports serial='pty'. Piping serial to stderr causes stubdom to exit abnormally. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 853631c..66a0d81 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1653,7 +1653,6 @@ vncdisplay=0 vnclisten='$ho->{Ip}' vncpasswd='$passwd' -serial='file:/dev/stderr' # boot = 'dc' END @@ -1668,6 +1667,14 @@ END $cfg .= "bios='$bios'\n"; } + my $stubdom = guest_var_boolean($gho, 'stubdom'); + if ($stubdom) { + $cfg .= "device_model_stubdomain_override=1\n"; + $cfg .= "serial='pty'\n"; + } else { + $cfg .= "serial='file:/dev/stderr'\n"; + } + $xopts{VifType} ||= "ioemu"; my $cfgpath= prepareguest_part_xencfg($ho, $gho, $ram_mb, \%xopts, $cfg); target_cmd_root($ho, <