[Pkg-libvirt-commits] [libguestfs] 82/165: fuse: Skip guestmount --fd test if /dev/fuse does not exist.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:24:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 068455f21005aa7cf7ea9c0a82e01f2cf58659e1
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Sun May 25 22:28:27 2014 +0100
fuse: Skip guestmount --fd test if /dev/fuse does not exist.
When we run guestmount (eg. in Koji) it will fail anyway, so don't run
the test.
---
fuse/test-guestmount-fd.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/fuse/test-guestmount-fd.c b/fuse/test-guestmount-fd.c
index c143093..00eab0c 100644
--- a/fuse/test-guestmount-fd.c
+++ b/fuse/test-guestmount-fd.c
@@ -62,6 +62,14 @@ main (int argc, char *argv[])
exit (77);
}
+ /* Skip the test if /dev/fuse is not writable, because guestmount
+ * will fail.
+ */
+ if (access ("/dev/fuse", W_OK) == -1) {
+ perror ("/dev/fuse");
+ exit (77);
+ }
+
/* Create the pipe. */
if (pipe (pipefd) == -1) {
perror ("pipe");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list