autotest: correct pexpect handling of supplementary programs

This commit is contained in:
Peter Barker 2021-02-18 13:43:02 +11:00 committed by Peter Barker
parent ae7b21843e
commit 240e2d6b28

View File

@ -5863,10 +5863,8 @@ Also, ignores heartbeats not from our target system'''
self.mavproxy = self.start_mavproxy()
self.expect_list_clear()
if len(self.sup_prog):
self.expect_list_extend([self.sitl, self.mavproxy])
else:
self.expect_list_extend([self.sitl, self.mavproxy] + self.sup_prog)
self.expect_list_extend([self.sitl, self.mavproxy])
self.expect_list_extend(self.sup_prog)
# need to wait for a heartbeat to arrive as then mavutil will
# select the correct set of messages for us to receive in