Commit 6a7839ed authored by Chris Lamb's avatar Chris Lamb 💬

Improve the test package generation logging output to include a current/total status.

parent f1e90285
......@@ -267,9 +267,9 @@ my @workpaths = map { rel2abs(abs2rel($_, $testset), $outpath) } @testpaths;
my $build = IO::Async::Function->new(
code => sub {
my ($path) = @_;
my ($path, $num, $total) = @_;
my $label = "Building in $path";
my $label = "Building in $path [$num/$total]";
say $label;
$0 = $label;
......@@ -324,7 +324,9 @@ my $build = IO::Async::Function->new(
$loop->add($build);
$SIG{INT} = sub { $build->stop; die "Caught a sigint $!" };
my @buildtasks = map {$build->call(args => [$_])} sort @workpaths;
my $counter;
my @buildtasks= map {$build->call(args => [$_, ++$counter, scalar @workpaths])}
sort @workpaths;
my $allbuilt = Future->needs_all(@buildtasks);
$allbuilt->get;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment