commit | 0f2008a84f5936a459480aba46f044f193826355 | [log] [tgz] |
---|---|---|
author | Jeremy Ronquillo <jeremyr@onlab.us> | Fri Jun 23 15:32:51 2017 -0700 |
committer | Jeremy Ronquillo <jeremyr@onlab.us> | Fri Jun 23 15:32:51 2017 -0700 |
tree | b6d39feb7ccdb0bbb49a7ce58c326a2776f62a3e | |
parent | b5488016ef37ee8e9d0c76cd33b8725a925f8477 [diff] |
Redirect new bash session to home dir when connecting using ssh Change-Id: I909fdf4d84c9fac10a23d84f3ae2c0970121d650
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py index 1bbc399..1687975 100644 --- a/TestON/drivers/common/cli/emulator/mininetclidriver.py +++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -3778,6 +3778,9 @@ if not host: host = self.name self.handle.sendline( self.home + "/util/m " + host ) + self.handle.sendline( "cd" ) + self.handle.expect( self.hostPrompt ) + self.handle.sendline( "" ) self.handle.expect( self.hostPrompt ) return main.TRUE except pexpect.TIMEOUT:
diff --git a/TestON/drivers/common/cli/emulator/scapyclidriver.py b/TestON/drivers/common/cli/emulator/scapyclidriver.py index f61536c..3085a0f 100644 --- a/TestON/drivers/common/cli/emulator/scapyclidriver.py +++ b/TestON/drivers/common/cli/emulator/scapyclidriver.py
@@ -251,6 +251,9 @@ if not host: host = self.name self.handle.sendline( self.home + "/util/m " + host ) + self.handle.sendline( "cd" ) + self.handle.expect( self.hostPrompt ) + self.handle.sendline( "" ) self.handle.expect( self.hostPrompt ) return main.TRUE except pexpect.TIMEOUT: