Fix the use of exitFromCmd in mininet cli driver
Change-Id: I41704ab6b01b3e3ce67b8f09bb65d6242c4fd281
(cherry picked from commit eb68dc44923f90a2afd8be4c2a36a6521a82f9b0)
diff --git a/TestON/drivers/common/cli/emulator/mininetclidriver.py b/TestON/drivers/common/cli/emulator/mininetclidriver.py
index 661ada7..e67e4e1 100644
--- a/TestON/drivers/common/cli/emulator/mininetclidriver.py
+++ b/TestON/drivers/common/cli/emulator/mininetclidriver.py
@@ -386,7 +386,7 @@
str( response ) )
# NOTE: Send ctrl-c to make sure pingall is done
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
break
pattern = "Results\:"
@@ -398,7 +398,7 @@
else:
# NOTE: Send ctrl-c to make sure pingall is done
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
return main.FALSE
else:
@@ -492,7 +492,7 @@
# NOTE: Send ctrl-c to make sure command is stopped
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
response += self.handle.before + self.handle.after
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
response += self.handle.before + self.handle.after
main.log.debug( response )
@@ -560,7 +560,7 @@
# NOTE: Send ctrl-c to make sure command is stopped
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
response += self.handle.before + self.handle.after
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
response += self.handle.before + self.handle.after
main.log.debug( response )
@@ -624,7 +624,7 @@
# NOTE: Send ctrl-c to make sure command is stopped
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
response += self.handle.before + self.handle.after
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
response += self.handle.before + self.handle.after
main.log.debug( response )
@@ -688,7 +688,7 @@
# NOTE: Send ctrl-c to make sure command is stopped
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
response += self.handle.before + self.handle.after
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
response += self.handle.before + self.handle.after
main.log.debug( response )
@@ -1354,7 +1354,7 @@
repr( self.handle.before ) )
# NOTE: Send ctrl-c to make sure iperf is done
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
return main.FALSE
except pexpect.EOF:
@@ -1389,7 +1389,7 @@
main.log.error( self.name + ": TIMEOUT exception found" )
main.log.error( self.name + " response: " + repr( self.handle.before ) )
self.exitFromCmd( [ "Interrupt", "mininet>" ] )
- self.handle.send( "" )
+ self.handle.sendline( "" )
self.handle.expect( "mininet>" )
return main.FALSE
except pexpect.EOF: