Source: gearman
Version: 1.0.6
Severity: normal
Tags: patch
User: autopkgtest-de...@lists.alioth.debian.org
Usertags: autopkgtest

Dear Maintainer,

When I execute the tests in file debian/tests/01.gearman-job-server.t, I got 
the 
following result:

01.gearman-job-server.t .. 
not ok 1 - service status
# 
#   service gearman-job-server 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 german-job-server 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 gearmand-1.0.6.orig/debian/tests/01.gearman-job-server.t gearmand-1.0.6/debian/tests/01.gearman-job-server.t
--- gearmand-1.0.6.orig/debian/tests/01.gearman-job-server.t	2014-07-07 09:08:42.692424930 -0300
+++ gearmand-1.0.6/debian/tests/01.gearman-job-server.t	2014-07-07 09:11:29.276423493 -0300
@@ -5,7 +5,7 @@
 . ./sharness.sh
 
 test_expect_success "service status" "
-  service gearman-job-server status
+  /usr/sbin/service gearman-job-server status
 "
 
 test_expect_success "process running" "

Reply via email to