Skip to content

Commit 05a77c6

Browse files
committed
Add debug var for dumping STDERR of t/pod-valid.t failures
And simplify code a bit (the tap receives a Str not a buf and there's no point in assigning it to a param if we never use it);
1 parent ab0a18a commit 05a77c6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ explains briefly how to get started contributing documentation.
159159
#= P<p6doc/&note>
160160
sub note(|$) { ... }
161161

162+
# ENV VARS
163+
164+
Set `PERL6_DOC_TEST_VERSBOSE` to a true value to display verbose messages during test suite run.
165+
Helpful when debugging failing test suite.
166+
162167
# LICENSE
163168

164169
See [LICENSE](LICENSE) file for the details of the license of the code in this repository.

t/pod-valid.t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ my @jobs;
2828
%data{@files} = 0 xx @files;
2929
for @files -> $file {
3030
my $p = Proc::Async.new($*EXECUTABLE-NAME, '--doc', $file);
31-
$p.stdout.tap(-> $buf {});
32-
$p.stderr.tap(-> $buf { %data{$file} = 1 });
31+
$p.stdout.tap: {;};
32+
$p.stderr.tap: {
33+
%*ENV<PERL6_DOC_TEST_VERSBOSE> and diag "$file STDERR: $_";
34+
%data{$file} = 1;
35+
}
3336
push @jobs: $p.start;
3437
if +@jobs > $max-jobs {
3538
test-it(await @jobs.shift);

0 commit comments

Comments
 (0)