[DRE-commits] [schleuder] 01/02: debian/tests/upstream-tests: Start haveged before executing the tests

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Mon Jun 12 23:12:06 UTC 2017


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

georg-alioth-guest pushed a commit to branch master
in repository schleuder.

commit 6960a5a5bfff62c7c9e834a0eb5b0a5a3af1fd74
Author: Georg Faerber <georg at riseup.net>
Date:   Tue Jun 13 00:26:46 2017 +0200

    debian/tests/upstream-tests: Start haveged before executing the tests
    
    Because GPG key operations rely heavily on entropy, ensure that haveged
    is in fact running, before executing the tests. Currently, the init
    script of haveged prevents the automatic start in containerized
    environments, so let's start it manually.
---
 debian/tests/control        | 2 +-
 debian/tests/upstream-tests | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/tests/control b/debian/tests/control
index cf2a48e..6d8c13f 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
 Tests: check-status upstream-tests
 Depends: @, @builddeps@, gem2deb-test-runner, curl, haveged
-Restrictions: isolation-container
+Restrictions: isolation-container, needs-root
diff --git a/debian/tests/upstream-tests b/debian/tests/upstream-tests
index b25d0cc..4894793 100755
--- a/debian/tests/upstream-tests
+++ b/debian/tests/upstream-tests
@@ -2,4 +2,11 @@
 
 set -e
 
+# Because GPG key operations rely heavily on entropy,
+# ensure that haveged is in fact running, before executing
+# the tests. Currently, the init script of haveged prevents
+# the automatic start in containerized environments, so let's
+# start it manually.
+haveged -w 1024
+
 gem2deb-test-runner --autopkgtest --check-dependencies 2>&1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/schleuder.git



More information about the Pkg-ruby-extras-commits mailing list