tests: Fixed report CSS, VMs are now started in minimized state (GUI mode)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@501 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
366c6d8241
commit
63e29e1d1e
@ -3,15 +3,25 @@
|
|||||||
use IO::Socket;
|
use IO::Socket;
|
||||||
|
|
||||||
$vm = shift;
|
$vm = shift;
|
||||||
|
$log = shift;
|
||||||
|
|
||||||
|
# start virtualbox gui in minimized mode - this should be the first thing we do since this process
|
||||||
|
# inherits all handles and we want our sockets/log file closed
|
||||||
|
system("start /min virtualbox --startvm $vm");
|
||||||
|
|
||||||
|
# start a server; vm will connect to the server via autotest-remote-host.pl
|
||||||
my $server = new IO::Socket::INET(LocalPort => 7183, Listen => 1);
|
my $server = new IO::Socket::INET(LocalPort => 7183, Listen => 1);
|
||||||
die "Could not create socket: $!\n" unless $server;
|
die "Could not create socket: $!\n" unless $server;
|
||||||
|
|
||||||
system("vboxmanage startvm $vm --type headless");
|
open LOG, ">> $log" || die "Could not open log file: $!\n";
|
||||||
|
|
||||||
print "Listening for connection...\n";
|
print LOG "Listening for connection...\n";
|
||||||
|
|
||||||
my $client = $server->accept();
|
my $client = $server->accept();
|
||||||
|
|
||||||
print while (<$client>);
|
# echo all input to log file
|
||||||
|
print LOG $_ while (<$client>);
|
||||||
|
close LOG;
|
||||||
|
|
||||||
|
$client->close();
|
||||||
|
$server->close();
|
||||||
|
|||||||
@ -109,8 +109,8 @@ $configurationarray[$configurations{$_}] = $_ foreach (keys %configurations);
|
|||||||
|
|
||||||
# print header
|
# print header
|
||||||
$stylesheet = <<END;
|
$stylesheet = <<END;
|
||||||
table.autotest { border: 1px solid; border-left: none; border-top: none; }
|
table.autotest { border: 1px solid black; border-left: none; border-top: none; }
|
||||||
table.autotest td { border: 1px solid; border-right: none; border-bottom: none; }
|
table.autotest td { border: 1px solid black; border-right: none; border-bottom: none; }
|
||||||
END
|
END
|
||||||
|
|
||||||
print <<END;
|
print <<END;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user