[Pkg-utopia-maintainers] Bug#1031353: ostree: test-rofiles-fuse is skipped

Graham Inggs ginggs at debian.org
Thu Feb 16 17:23:48 GMT 2023


Control: tags -1 + patch

It seems that libcap2-bin is installed in the Debian autopkgtest
testbeds, and the debci user has the cap_sys_admin capability.  So
maybe all that is needed to get test-rofiles-fuse running is patching
the full path to /sbin/capsh, as per the patch below.  Alternatively,
adding a 'needs-root' restriction to the gnome-desktop-testing
autopkgtest will ensure /sbin is on the path and the capsh binary can
be found.

 Tests: gnome-desktop-testing
+Restrictions: needs-root
 Depends: gnome-desktop-testing, ostree-tests

Both worked for me running autopkgtest in a debian unstable image with
the qemu backend.

Regards
Graham


--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -685,7 +685,7 @@
 skip_without_fuse () {
     fusermount --version >/dev/null 2>&1 || skip "no fusermount"

-    capsh --print | grep -q 'Bounding set.*[^a-z]cap_sys_admin' || \
+    /sbin/capsh --print | grep -q 'Bounding set.*[^a-z]cap_sys_admin' || \
         skip "No cap_sys_admin in bounding set, can't use FUSE"

     [ -w /dev/fuse ] || skip "no write access to /dev/fuse"



More information about the Pkg-utopia-maintainers mailing list