summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2013-01-24 15:59:07 +0100
committerTomas Bzatek <tbzatek@redhat.com>2013-01-24 15:59:07 +0100
commit500951b5d8671d35739ed28ffcb28be53be1cd24 (patch)
treeb9149dd5165847dffcdce7ad11eb2e3b7d85e472 /test
parentc79426bf1f5745b7e3427958a0e6fb6e0bdefa93 (diff)
downloadgvfs-500951b5d8671d35739ed28ffcb28be53be1cd24.tar.gz
gvfs-test: Handle missing ~/.ssh/id_rsa gracefully
The 'sshd' attribute may not be set if we hit the non-existing ~/.ssh/id_rsa' test. https://bugzilla.gnome.org/show_bug.cgi?id=691568
Diffstat (limited to 'test')
-rwxr-xr-xtest/gvfs-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gvfs-test b/test/gvfs-test
index 3f2667ab..08b3f0c5 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -453,7 +453,7 @@ Subsystem sftp %(sftp_server)s
if result:
orig_err_fail = result.errors + result.failures
super().run(result)
- if result and result.errors + result.failures > orig_err_fail:
+ if result and result.errors + result.failures > orig_err_fail and hasattr(self, 'sshd'):
print('\n----- sshd log -----\n%s\n------\n' % self.sshd.stderr.read())
def test_rsa(self):