tests: Don't wait for full jam output before parsing

git-svn-id: http://pugixml.googlecode.com/svn/trunk@497 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-06-02 07:16:00 +00:00
parent 7703d96dcb
commit ae83fae821

View File

@ -76,10 +76,10 @@ foreach $toolset (@toolsets)
# launch command
print "### autotest launch $cmdline\n";
my $coverage = `$cmdline autotest=on coverage`;
open PIPE, "$cmdline autotest=on coverage |" || die "$cmdline failed: $!\n";
# parse build output
foreach (split /\n/, $coverage)
while (<PIPE>)
{
### autotest release [wchar] success
if (/^### autotest (\S+) \[(.*?)\] success/)
@ -105,14 +105,16 @@ foreach $toolset (@toolsets)
}
else
{
print "$_\n";
print;
}
}
else
{
print "$_\n";
print;
}
}
close PIPE;
}
print "### autotest end " . scalar localtime() . "\n";