]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
stubdom: Arrange for guest serial to go to a host logfile
authorIan Campbell <ian.campbell@citrix.com>
Wed, 7 Oct 2015 09:28:44 +0000 (10:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Oct 2015 16:19:29 +0000 (17:19 +0100)
By pointing the serial port at 'file:/var/log/dm-serial.log' it will
end up on mini-os's console and therefore in
/var/log/xen/qemu-dm-$guest.log.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/TestSupport.pm

index 69da4594e0f42cb3151977e7c9b8e2d1fa9eb48b..f9eba6bb37920baa4a08f85f630af7bf1a5df2dc 100644 (file)
@@ -1822,7 +1822,10 @@ END
     my $stubdom = guest_var_boolean($gho, 'stubdom');
     if ($stubdom) {
        $cfg .= "device_model_stubdomain_override=1\n";
-       $cfg .= "serial='pty'\n";
+       # MINI-OS turns any open of a path starting /var/log/ into a
+       # fd pointing to mini-os's console. IOW any such path used
+       # here ends up in the host logs in /var/log/xen/qemu-dm-$guest.log
+       $cfg .= "serial='file:/var/log/dm-serial.log'\n";
     } else {
        $cfg .= "serial='file:/dev/stderr'\n";
     }