diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-11-27 17:50:43 +0100 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-11-29 14:47:18 +0100 |
commit | 46b4898edc221eff6e1caffae894fc5a6f8d42ed (patch) | |
tree | cd112c6e1ff64810fb73a0270a3c4bda2645f6c9 /test | |
parent | 56a11c77e5bbefcbb490e7e39a3f724f7f207509 (diff) | |
download | gvfs-46b4898edc221eff6e1caffae894fc5a6f8d42ed.tar.gz |
gvfs-test: Skip Sftp.test_unknown_host when not in gvfs-testbed
When running under the normal user account, the StrictHostKeyChecking option is
client-configurable behaviour which cannot be temporarily changed. Skip the
test entirely in this case instead of exfailing it, as it does not test
anything meaningful then.
Drop the exfail so that the test must succeed when running under gvfs-testbed.
Diffstat (limited to 'test')
-rwxr-xr-x | test/gvfs-test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/gvfs-test b/test/gvfs-test index 6dbe74e2..d82b9b4d 100755 --- a/test/gvfs-test +++ b/test/gvfs-test @@ -433,7 +433,11 @@ Subsystem sftp %(sftp_server)s self.do_mount_check(uri) - @unittest.expectedFailure # https://bugzilla.gnome.org/show_bug.cgi?id=686006#c38 + # if we are in the testbed, then ssh defaults to + # "StrictHostKeyChecking ask", and a connection attempt should fail; + # otherwise this is client-configurable behaviour which cannot be + # temporarily overridden + @unittest.skipUnless(in_testbed, 'not running under gvfs-testbed') @unittest.skipUnless(local_ip, 'not having any non-localhost IP') def test_unknown_host(self): '''sftp:// with RSA authentication for unknown host''' |