Skip to content

Commit

Permalink
autotest: carbonix: more flapping-test fixes
Browse files Browse the repository at this point in the history
These two assert_no_text checks should have had this regex originally.
  • Loading branch information
robertlong13 committed Dec 30, 2024
1 parent 692341e commit 638620b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tools/autotest/carbonix.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def TestMotorFail(esc_index, servo_index, is_pusher=False):
self.change_mode('QSTABILIZE')

# Confirm no error messages are present
self.assert_no_text('CX_BIT.*', regex=True, check_context=True)
# TODO: clean this line up too when Servo Out nil is fixed
self.assert_no_text('^CX_BIT:.*(?!Servo Out nil).*', regex=True, check_context=True)

# Fail the ESC telemetry for the specified index
self.progress(f'Failing Motor {esc_index}')
Expand All @@ -142,7 +143,8 @@ def TestMotorFail(esc_index, servo_index, is_pusher=False):

# And one more time, confirm no error messages are present
self.context_clear_collection('STATUSTEXT')
self.assert_no_text('CX_BIT.*', regex=True, check_context=True)
# TODO: clean this line up too when Servo Out nil is fixed
self.assert_no_text('^CX_BIT:.*(?!Servo Out nil).*', regex=True, check_context=True)
self.disarm_vehicle()
self.context_pop()

Expand Down

0 comments on commit 638620b

Please sign in to comment.