add rm to sshd tests

This commit is contained in:
Brian O'Connor
2013-09-11 14:45:49 -07:00
parent c5da46f125
commit bfb560045c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -29,6 +29,7 @@ class testBareSSHD( unittest.TestCase ):
# verify that sshd is not running
self.assertFalse( self.connected() )
# create public key pair for testing
sh( 'rm -rf /tmp/ssh' )
sh( 'mkdir /tmp/ssh' )
sh( "ssh-keygen -t rsa -P '' -f /tmp/ssh/test_rsa" )
sh( 'cat /tmp/ssh/test_rsa.pub >> /tmp/ssh/authorized_keys' )