Package: libusbauth-configparser
Version: 1.0.1+git20190123.0e6393b-3
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

Dear Kun-Hung,

With the sync of libusbauth-configparser 1.0.1+git20190123.0e6393b-3 to
Ubuntu from Debian unstable, the autopkgtest now fails on armhf:

[...]
autopkgtest [06:11:25]: test test: [-----------------------
run: Check if library file exist
sudo: no tty present and no askpass program specified
run: Fail
autopkgtest [06:11:27]: test test: -----------------------]
[...]

  
(http://autopkgtest.ubuntu.com/packages/libu/libusbauth-configparser/eoan/armhf)

This is because you have introduced the use of sudo into your autopkgtest. 
An autopkgtest environment is not guaranteed to permit passwordless sudo; if
an autopkgtest needs root privileges, it must instead declare 'Restrictions:
needs-root' and be run as root by the test harness.

However, in this case the only thing you're running under sudo is 'ldconfig
-p', which only looks at the system cache and is not a privileged operation. 
So the simplest fix here is to just drop the use of sudo.

Please see the attached patch, which I have uploaded to Ubuntu.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru libusbauth-configparser-1.0.1+git20190123.0e6393b/debian/tests/test 
libusbauth-configparser-1.0.1+git20190123.0e6393b/debian/tests/test
--- libusbauth-configparser-1.0.1+git20190123.0e6393b/debian/tests/test 
2019-04-20 21:50:05.000000000 -0700
+++ libusbauth-configparser-1.0.1+git20190123.0e6393b/debian/tests/test 
2019-04-29 21:51:24.000000000 -0700
@@ -6,7 +6,7 @@
 set -e
 
 echo "run: Check if library file exist"
-if sudo ldconfig -p | grep libusbauth-configparser
+if ldconfig -p | grep libusbauth-configparser
 then
     echo "run: Found libary"
 else

Reply via email to