mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
autotest: present strings for unexpected results in run_cmd_get_ack
This commit is contained in:
parent
ea57b1982f
commit
cecdc798ca
@ -3627,8 +3627,9 @@ class AutoTest(ABC):
|
||||
self.progress("ACK received: %s (%fs)" % (str(m), delta_time))
|
||||
if m.command == command:
|
||||
if m.result != want_result:
|
||||
raise ValueError("Expected %s got %s" % (want_result,
|
||||
m.result))
|
||||
raise ValueError("Expected %s got %s" % (
|
||||
mavutil.mavlink.enums["MAV_RESULT"][want_result].name,
|
||||
mavutil.mavlink.enums["MAV_RESULT"][m.result].name))
|
||||
break
|
||||
|
||||
def verify_parameter_values(self, parameter_stuff, max_delta=0.0):
|
||||
|
Loading…
Reference in New Issue
Block a user