[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bioperl autopkgtest failure: Can't find 'build_params' in _build at /usr/share/perl5/Module/Build/Base.pm line 1291.



On Sat, 14 Jan 2017 23:22:30 +0100, Andreas Tille wrote:

> > Not sure (and I have to run now) but both tests fail exactly before
> > they get to the network tests. Maybe this is test_skip() in
> > Bio/Root/Test.pm (which _might_ to try to read the result of `perl
> > Build.PL' to see if network tests are allowed and this fails during
> > autopkgtest because those build artifacts don't exist in the
> > temporary test directory).
> > 
> > If this is true I'm not sure what's the best way to fix it. And easy
> > and inelegant version is to add the 2 tests to
> > debian/tests/pkg-perl/smoke-skip.
> 
> Sounds convincing - however, I admit I do not know what specific test
> to exclude (Just add t/Species.t to smoke-skip or just the specific
> subtest and if yes how to "count" the tests and once I know which one
> how to exactly specify it syntactically correct.

The quick and dirty workaround would be to add both test files to
debian/tests/pkg-perl/smoke-skip. This is just a workaround but I'm
not sure how feasible it is to dissect the actual problem (and write
patches to the upstream test framework if the problem is really that
Bio::Root::Test only works from within the build tree).

Tested patch attached.

Background information for the autopkgtest-pkg-perl framework:
https://pkg-perl.alioth.debian.org/autopkgtest.html

Cheers,
gregor  

-- 
 .''`.  https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Tori Amos: Icicle
From f4274e7a89979cc115e2ad763177e33e30245128 Mon Sep 17 00:00:00 2001
From: gregor herrmann <gregoa@debian.org>
Date: Sun, 15 Jan 2017 00:57:16 +0100
Subject: [PATCH] autopkgtest: add t/Perl.t and t/Species.t to
 debian/tests/pkg-perl/smoke-skip.

These tests fail the autopkgtest-pkg-perl smoke test because they try to
access build artifacts which are not present during autopkgtest.
---
 debian/tests/pkg-perl/smoke-skip | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 debian/tests/pkg-perl/smoke-skip

diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
new file mode 100644
index 0000000..382cead
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -0,0 +1,2 @@
+t/Perl.t
+t/Species.t
-- 
2.11.0

Attachment: signature.asc
Description: Digital Signature


Reply to: