From ae83fae821963744ff2468bae8fc5a7ee696bee7 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 2 Jun 2010 07:16:00 +0000 Subject: 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 --- tests/autotest-local.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') 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 () { ### 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"; -- cgit v1.2.3