diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-02 07:16:00 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-02 07:16:00 +0000 |
commit | ae83fae821963744ff2468bae8fc5a7ee696bee7 (patch) | |
tree | 9811c5d31eb4da0d7bbde9468ada2576680e901d /tests | |
parent | 7703d96dcb33fed7604b5e44df730430fac78f70 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autotest-local.pl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/autotest-local.pl b/tests/autotest-local.pl index 3769d64..261852a 100644 --- a/tests/autotest-local.pl +++ b/tests/autotest-local.pl @@ -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";
|