mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
autotest: fix interact
This commit is contained in:
parent
77945be031
commit
675c6e27e9
@ -227,6 +227,8 @@ class TeeBoth(object):
|
|||||||
self.file = None
|
self.file = None
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
|
if isinstance(data, bytes):
|
||||||
|
data = data.decode('ascii')
|
||||||
self.file.write(data)
|
self.file.write(data)
|
||||||
if not self.suppress_stdout:
|
if not self.suppress_stdout:
|
||||||
self.stdout.write(data)
|
self.stdout.write(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user