From bfb560045c2c2fad9fc155b8e729db714411f970 Mon Sep 17 00:00:00 2001 From: Brian O'Connor Date: Tue, 10 Sep 2013 18:55:21 -0700 Subject: [PATCH] add rm to sshd tests --- examples/test/test_baresshd.py | 1 + examples/test/test_sshd.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/test/test_baresshd.py b/examples/test/test_baresshd.py index b76fe20..d708761 100755 --- a/examples/test/test_baresshd.py +++ b/examples/test/test_baresshd.py @@ -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' ) diff --git a/examples/test/test_sshd.py b/examples/test/test_sshd.py index 9d4ef1f..04bd184 100755 --- a/examples/test/test_sshd.py +++ b/examples/test/test_sshd.py @@ -34,6 +34,7 @@ class testSSHD( unittest.TestCase ): def setUp( self ): # 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' )