[Freedombox-pkg-team] Bug#878699: plinth: [WIP] Add tests

James Valleroy jvalleroy at mailbox.org
Sun Oct 15 21:21:23 UTC 2017


Package: plinth
Severity: wishlist

The attached patch adds tests for autopkgtest (ci.debian.net). It
includes the test suite from upstream.

Currently there is a problem which causes the test run to fail with
"Test dependencies are unsatisfiable". It tries to install fail2ban
and then start the service:

$ sudo autopkgtest-build-lxc debian sid
...
$ autopkgtest --apt-upgrade -B $(debc --list-debs) . -- lxc --sudo autopkgtest-sid
...
Setting up fail2ban (0.9.7-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/fail2ban.service → /lib/systemd/system/fail2ban.service.
Job for fail2ban.service failed because the control process exited with error code.
See "systemctl  status fail2ban.service" and "journalctl  -xe" for details.
invoke-rc.d: initscript fail2ban, action "start" failed.
● fail2ban.service - Fail2Ban Service
   Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2017-10-15 20:52:27 UTC; 4ms ago
     Docs: man:fail2ban(1)
  Process: 12570 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)
dpkg: error processing package fail2ban (--configure):
 subprocess installed post-installation script returned error exit status 1
-------------- next part --------------
>From f69bf1b563a6969b543ca7bca5da0abdb651f9d3 Mon Sep 17 00:00:00 2001
From: James Valleroy <jvalleroy at mailbox.org>
Date: Wed, 4 Oct 2017 22:07:33 -0400
Subject: [PATCH] Add tests

---
 debian/tests/control   | 2 ++
 debian/tests/run-tests | 7 +++++++
 2 files changed, 9 insertions(+)
 create mode 100644 debian/tests/control
 create mode 100755 debian/tests/run-tests

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 00000000..f2fef0f8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: run-tests
+Restrictions: needs-root, breaks-testbed, allow-stderr
diff --git a/debian/tests/run-tests b/debian/tests/run-tests
new file mode 100755
index 00000000..31fa14fa
--- /dev/null
+++ b/debian/tests/run-tests
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# show full errors in log
+export SYSTEMD_PAGER=cat
+
+python3 setup.py test
-- 
2.11.0



More information about the Freedombox-pkg-team mailing list