~mfoord/juju-core/ha-rsyslog-2

« back to all changes in this revision

Viewing changes to utils/ssh/ssh_test.go

  • Committer: Wayne Witzel III
  • Date: 2014-05-22 14:05:15 UTC
  • mto: This revision was merged to the branch mainline in revision 2737.
  • Revision ID: wayne.witzel@canonical.com-20140522140515-bsr7yv78eh8ku4iv
revert merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        gc "launchpad.net/gocheck"
13
13
 
14
14
        "launchpad.net/juju-core/cmd"
15
 
        "launchpad.net/juju-core/testing"
 
15
        "launchpad.net/juju-core/testing/testbase"
16
16
        "launchpad.net/juju-core/utils/ssh"
17
17
)
18
18
 
19
19
type SSHCommandSuite struct {
20
 
        testing.BaseSuite
 
20
        testbase.LoggingSuite
21
21
        testbin string
22
22
        fakessh string
23
23
        fakescp string
29
29
const echoCommandScript = "#!/bin/sh\necho $0 \"$@\" | tee $0.args"
30
30
 
31
31
func (s *SSHCommandSuite) SetUpTest(c *gc.C) {
32
 
        s.BaseSuite.SetUpTest(c)
 
32
        s.LoggingSuite.SetUpTest(c)
33
33
        s.testbin = c.MkDir()
34
34
        s.fakessh = filepath.Join(s.testbin, "ssh")
35
35
        s.fakescp = filepath.Join(s.testbin, "scp")