Source: mod-gearman Version: 1.4.14 Severity: normal Tags: patch, autopkgtest
Dear Maintainer, When I execute the tests in file debian/tests/01.mod-gearman-worker.t, I got the following result: 01.mod-gearman-worker.t .. not ok 1 - service status # # service mod-gearman-worker status # ok 2 - process running # failed 1 among 2 test(s) 1..2 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests The test of status of mod-gearman-worker service is broken, because in test have a calling to 'service', and it is in /usr/sbin and it is not in $PATH of normal user, only in root's $PATH. To solve this error, I did not add a restriction to run this test with root permission and it use root's $PATH, I only substituted 'service' to '/usr/sbin/service' and the test passed. Thanks for your attention. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru mod-gearman-1.4.14.orig/debian/tests/01.mod-gearman-worker.t mod-gearman-1.4.14/debian/tests/01.mod-gearman-worker.t --- mod-gearman-1.4.14.orig/debian/tests/01.mod-gearman-worker.t 2014-06-11 18:12:49.004164768 -0300 +++ mod-gearman-1.4.14/debian/tests/01.mod-gearman-worker.t 2014-06-12 21:13:50.645501648 -0300 @@ -5,7 +5,7 @@ . ./sharness.sh test_expect_success "service status" " - service mod-gearman-worker status + /usr/sbin/service mod-gearman-worker status " test_expect_success "process running" "

