summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-10-10 10:47:19 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2017-10-10 22:08:46 +0200
commitcffb8e8b6ce1651ccf4cd57bade616582e1be7b4 (patch)
tree74d8d2e081dcf2ed9a9ca97031e62de860a2a3bc /test
parentb460e26523ac2bc27188158dec514c5ff84cf391 (diff)
downloadgvfs-cffb8e8b6ce1651ccf4cd57bade616582e1be7b4.tar.gz
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
Diffstat (limited to 'test')
-rwxr-xr-xtest/gvfs-test1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/gvfs-test b/test/gvfs-test
index f945072f..4537d8a5 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):