[libdevice-cdio-perl] 11/17: Skip tests during build and autopkgtest by using the new upstream variable CI.

gregor herrmann gregoa at debian.org
Mon Oct 30 18:48:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libdevice-cdio-perl.

commit 6d59efc2a83763f4e2aa0be5fa852d8c66aee886
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Oct 30 18:45:46 2017 +0100

    Skip tests during build and autopkgtest by using the new upstream variable CI.
---
 debian/rules                     | 6 +-----
 debian/tests/pkg-perl/smoke-env  | 2 ++
 debian/tests/pkg-perl/smoke-skip | 3 ---
 3 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/debian/rules b/debian/rules
index 0b94f32..ae7c6aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,5 @@
 #!/usr/bin/make -f
 
-# skip tests that need a physical CD-ROM drive
-SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
-TEST_FILES = $(sort $(filter-out $(SKIP_TESTS), $(wildcard t/*.t)))
-
 %:
 	dh $@ --buildsystem=perl_build
 
@@ -28,4 +24,4 @@ override_dh_auto_build:
 	dh_auto_build
 
 override_dh_auto_test:
-	TZ=UTC dh_auto_test -- --test_files="$(TEST_FILES)"
+	TZ=UTC CI=1 dh_auto_test -- --test_files="$(TEST_FILES)"
diff --git a/debian/tests/pkg-perl/smoke-env b/debian/tests/pkg-perl/smoke-env
new file mode 100644
index 0000000..32ce8d7
--- /dev/null
+++ b/debian/tests/pkg-perl/smoke-env
@@ -0,0 +1,2 @@
+# skip tests which fail in CI (or chroots, qemu, ...) as they need a real device
+CI=1
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
deleted file mode 100644
index 10df1d6..0000000
--- a/debian/tests/pkg-perl/smoke-skip
+++ /dev/null
@@ -1,3 +0,0 @@
-# fail without a physical drive, e.g. with QEMU's /dev/cdrom
-t/05.ops.t
-t/11.dev.t

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevice-cdio-perl.git



More information about the Pkg-perl-cvs-commits mailing list