[gvfs] test: Make sshd test optional



commit cffb8e8b6ce1651ccf4cd57bade616582e1be7b4
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Tue Oct 10 10:47:19 2017 +0200

    test: Make sshd test optional
    
    This patchs makes the sshd test optional in case the system misses
    a SSH server.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786149

 test/gvfs-test |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/test/gvfs-test b/test/gvfs-test
index f945072..4537d8a 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -437,6 +437,7 @@ class ArchiveMounter(GvfsTestCase):
             self.unmount_api(gfile)
 
 
+@unittest.skipUnless(sshd_path != None, 'sshd not installed')
 @unittest.skipUnless(os.getenv('XDG_RUNTIME_DIR'), 'No $XDG_RUNTIME_DIR available')
 @unittest.skipUnless(os.path.exists(os.path.expanduser('~/.ssh/id_rsa')), 'This test needs an existing 
~/.ssh/id_rsa')
 class Sftp(GvfsTestCase):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]