Package: nsscache Version: 0.27 Severity: normal Tags: patch User: autopkgtest-de...@lists.alioth.debian.org Usertags: autopkgtest
Dear Maintainer, The tests in debci using autopkgtest doesn't find the command 'slapadd'. Below the autopkgtest's log: adt-run [11:46:31]: test regtest: [----------------------- + [[ -z /tmp/adttmp.Vitnzi ]] + WORKDIR=/tmp/adttmp.Vitnzi + ARTIFACTS=/tmp/adt-run.9WEZac/regtest-artifacts + trap cleanup 0 INT QUIT ABRT PIPE TERM + setup_slapd + set -e + mkdir -p /tmp/adttmp.Vitnzi/ldap + sed -e 's!@workdir@!/tmp/adttmp.Vitnzi!' + slapadd -d -1 -f /tmp/adt-run.9WEZac/regtest-artifacts/slapd.conf -b dc=example,dc=com -l debian/tests/default.ldif /tmp/adt-run.9WEZac/tree/debian/tests/regtest: line 29: slapadd: command not found + cleanup + [[ -e /tmp/adttmp.Vitnzi/slapd.pid ]] + [[ -z /tmp/adttmp.Vitnzi ]] adt-run [11:46:32]: test regtest: -----------------------] regtest FAIL non-zero exit status 127 adt-run [11:46:32]: test regtest: - - - - - - - - - - results - - - - - - - - - - adt-run [11:46:32]: test regtest: - - - - - - - - - - stderr - - - - - - - - - - + [[ -z /tmp/adttmp.Vitnzi ]] + WORKDIR=/tmp/adttmp.Vitnzi + ARTIFACTS=/tmp/adt-run.9WEZac/regtest-artifacts + trap cleanup 0 INT QUIT ABRT PIPE TERM + setup_slapd + set -e + mkdir -p /tmp/adttmp.Vitnzi/ldap + sed -e 's!@workdir@!/tmp/adttmp.Vitnzi!' + slapadd -d -1 -f /tmp/adt-run.9WEZac/regtest-artifacts/slapd.conf -b dc=example,dc=com -l debian/tests/default.ldif /tmp/adt-run.9WEZac/tree/debian/tests/regtest: line 29: slapadd: command not found + cleanup + [[ -e /tmp/adttmp.Vitnzi/slapd.pid ]] + [[ -z /tmp/adttmp.Vitnzi ]] The slapadd command exist, but it is in root's PATH. To solve this I added a restriction 'needs-root' in debian/tests/control, but it wasn't solved all the problems, to pass and finalize successfully I needed to add another restriction to allow stderr output. After this modifications all tests are passing in debci with autopkgtest. Thanks for consider it! -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru nsscache-0.27.orig/debian/tests/control nsscache-0.27/debian/tests/control --- nsscache-0.27.orig/debian/tests/control 2014-07-27 23:45:33.585219948 -0300 +++ nsscache-0.27/debian/tests/control 2014-08-04 11:27:58.291100887 -0300 @@ -4,3 +4,4 @@ ldap-utils, libnss-db, db-util +Restrictions: needs-root allow-stderr