Commit 07d5888c authored by Niko Tyni's avatar Niko Tyni

autopkgtest: support empty skip lists for syntax.t

Packages can now include an explicit empty skip list,
which forces the test to run even in the presence of

Affected packages include libconfig-model-perl,
libdevel-cycle-perl and libpar-packer-perl.
parent ae20a022
......@@ -35,7 +35,8 @@ sub readskip {
my $skip = "debian/tests/pkg-perl/syntax-skip";
$skip = "debian/tests/pkg-perl/skip-syntax" if ! -r $skip;
-r $skip or return ();
my @ret = readfile($skip);
return @ret ? @ret : ( undef );
sub readextra {
......@@ -100,6 +101,8 @@ for my $package (@packages) {
next if !/\.pm$/ and !$is_extra;
for my $skip_re (@to_skip) {
# undef special cased to mean 'an empty explicit skip list'
last if !defined $skip_re;
note "skipping $_", next F if /$skip_re/;
my $oninc = 0;
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