Revision bfb56004

View differences:

examples/test/test_baresshd.py
29 29
        # verify that sshd is not running
30 30
        self.assertFalse( self.connected() )
31 31
        # create public key pair for testing
32
        sh( 'rm -rf /tmp/ssh' )
32 33
        sh( 'mkdir /tmp/ssh' )
33 34
        sh( "ssh-keygen -t rsa -P '' -f /tmp/ssh/test_rsa" )
34 35
        sh( 'cat /tmp/ssh/test_rsa.pub >> /tmp/ssh/authorized_keys' )
examples/test/test_sshd.py
34 34

  
35 35
    def setUp( self ):
36 36
        # create public key pair for testing
37
        sh( 'rm -rf /tmp/ssh' )
37 38
        sh( 'mkdir /tmp/ssh' )
38 39
        sh( "ssh-keygen -t rsa -P '' -f /tmp/ssh/test_rsa" )
39 40
        sh( 'cat /tmp/ssh/test_rsa.pub >> /tmp/ssh/authorized_keys' )

Also available in: Unified diff