~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ssh_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-02-23 16:08:08 UTC
  • mfrom: (3220.1.5 bug.107593)
  • Revision ID: pqm@pqm.ubuntu.com-20080223160808-81yb25z7tmhlss8q
(Dmitry Vasiliev) Restore auto-detection of plink.exe on Windows
 (bug #107593)

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        manager = TestSSHVendorManager()
77
77
        self.assertRaises(SSHVendorNotFound, manager.get_vendor, {})
78
78
        manager.set_ssh_version_string("plink")
79
 
        # because autodetection of plink vendor is temporary disabled
80
 
        # next test is no longer pass. so it's disabled as well.
81
 
        #~self.assertIsInstance(manager.get_vendor({}), PLinkSubprocessVendor)
82
 
        # expect error instead (bialix 20071115)
83
 
        self.assertRaises(SSHVendorNotFound, manager.get_vendor, {})
 
79
        self.assertIsInstance(manager.get_vendor({}), PLinkSubprocessVendor)
84
80
 
85
81
    def test_cached_vendor(self):
86
82
        manager = TestSSHVendorManager()
188
184
        self.assertEqual(
189
185
            vendor._get_vendor_specific_argv(
190
186
                "user", "host", 100, command=["bzr"]),
191
 
            ["plink", "-x", "-a", "-ssh", "-2",
 
187
            ["plink", "-x", "-a", "-ssh", "-2", "-batch",
192
188
                "-P", "100",
193
189
                "-l", "user",
194
190
                "host", "bzr"]
199
195
        self.assertEqual(
200
196
            vendor._get_vendor_specific_argv(
201
197
                "user", "host", 100, subsystem="sftp"),
202
 
            ["plink", "-x", "-a", "-ssh", "-2",
 
198
            ["plink", "-x", "-a", "-ssh", "-2", "-batch",
203
199
                "-P", "100",
204
200
                "-l", "user",
205
201
                "-s", "host", "sftp"]