commit | 2c5ac9484cef22c1a9943efcba57e58a59bc1f64 | [log] [tgz] |
---|---|---|
author | Jon Hall <jhall@ciena.com> | Fri Mar 23 11:26:54 2018 -0700 |
committer | Jon Hall <jhall@ciena.com> | Fri Mar 23 14:17:45 2018 -0700 |
tree | b3717be4f2a831c392942b47a76068e70d5cd914 | |
parent | 4b70130db3e3a34bebc39a8cb03d6405e54e0a05 [diff] [blame] |
Fix for sending extra new line after interrupting a command Change-Id: I05784a7b53b43781be13750023bccee3cc35085d
diff --git a/TestON/drivers/common/cli/emulator/lincoemininetdriver.py b/TestON/drivers/common/cli/emulator/lincoemininetdriver.py index df1abd7..ba54a75 100644 --- a/TestON/drivers/common/cli/emulator/lincoemininetdriver.py +++ b/TestON/drivers/common/cli/emulator/lincoemininetdriver.py
@@ -73,7 +73,7 @@ self.handle.sendline( cmd ) lincStart = self.handle.expect( [ "mininet>", pexpect.TIMEOUT ], timeout=120 ) if lincStart == 1: - self.handle.sendline( "\x03" ) + self.handle.send( "\x03" ) self.handle.sendline( "sudo mn -c" ) self.handle.sendline( cmd ) lincStart = self.handle.expect( [ "mininet>", pexpect.TIMEOUT ], timeout=120 )