-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
We have the following bug reported to the Debian package of
Test-Perl-Critic (https://bugs.debian.org/795716):
It doesn't seem to be a bug in the packaging, so you may want to take
a look. Thanks!
(Summarising the relevant part from the bug log)
------8<-----------8<-----------8<-----------8<-----------8<-----
> > Package: libtest-perl-critic-perl
> > Version: 1.03-1
> > Severity: serious
> > control: affects -1 lintian
> >
> > Sid version FTBFS whereas testing work fine see
> > https://jenkins.debian.net/job/lintian-tests_sid/
The symptom is:
"""
> $ perl -Ilib t/scripts/01-critic/docs-examples.t
> 1..1
> # Subtest: Critic all code in doc/examples/checks
> ok - Test::Perl::Critic for "doc/examples/checks/my-vendor/another-check.pm"
> ok - Test::Perl::Critic for "doc/examples/checks/my-vendor/some-check.pm"
> 1..2
> not ok 1 - No tests run for subtest "Critic all code in doc/examples/checks"
> # Failed test 'No tests run for subtest "Critic all code in doc/examples/checks"'
> # at t/scripts/01-critic/docs-examples.t line 47.
> # Looks like you failed 1 test of 1.
>
> """
We run the all_critic_ok in a subtest like so:
"""
# all_critic_ok emits its own plan, so run it in a subtest
# so we can just count it as "one" test.
subtest "Critic all code in $arg" => sub {
all_critic_ok($arg);
};
"""
This seems to be broken by upstream, which is now running all the
"critic_ok" tests in a subprocess (via mce_grep). This means that
all_critic_ok in total do 0 tests!
------8<-----------8<-----------8<-----------8<-----------8<-----
Thanks for considering,
gregor herrmann,
Debian Perl Group
Metadata
Metadata
Assignees
Labels
No labels