I tried to create a small test and check where the problem is coming from.
setenv DEVEL_COVER_DB_FORMAT JSON
setenv PERL5OPT "-MDevel::Cover=+ignore,/cov/,/data/,-silent,1,-summar
+y,0,+select,project/"
./script.pl
unsetenv PERL5OPT
/usr/pkgs/perl/5.14.1/bin/cover
The script looks like:
#!/usr/pkgs/perl/5.14.1/bin/perl
use strict;
use warnings;
my $cmd = "/project/bin/create_d.pl --data abc
system($cmd);
print("Done");
exit(0);
I unset PERL5OPT because if not and I run the cover script it fails with:
/usr/pkgs/perl/5.14.1/bin/cover shouldn't be run with coverage turned
+on.
Anyway, after unsetting PERL5OPT I run the cover script and get:
Reading database from /play_ground/cov/cover_db
found cover.13 in /play_ground/cov/cover_db/runs/1570662588.11726.0385
+0 at /usr/pkgs/perl/5.14.1/lib64/module/r3/x86_64-linux/Devel/Cover/D
+B.pm line 203.
Devel::Cover: /play_ground/cov/cover_db/runs/1570662588.11726.03850 is
+ an invalid database
found cover.13 in /play_ground/cov/cover_db/runs/1570662590.11725.0717
+0 at /usr/pkgs/perl/5.14.1/lib64/module/r3/x86_64-linux/Devel/Cover/D
+B.pm line 203.
Devel::Cover: /play_ground/cov/cover_db/runs/1570662590.11725.07170 is
+ an invalid database
----------------------------------------------------------------------
+-------
File
----------------------------------------------------------------------
+-------
Total
----------------------------------------------------------------------
+-------
HTML output written to /play_ground/cov/cover_db/coverage.html
done.
I use only one version and that is 5.14.1 - both in coverage, script's shabeng and all of the project's scripts. So I does not seems to be a version issue. Any ideas what it also could be?