Skip to content

Commit

Permalink
Update src/python_testing/TC_DISHM_2_1.py
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
abpoth and bzbarsky-apple authored Oct 19, 2023
1 parent 58f7e3e commit 898d118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_testing/TC_DISHM_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class CommonCodes(Enum):
st = ret.status
logging.info("ChangeToMode Status: %s" % (ret.status))
is_mfg_code = st in range(0x80, 0xC0)
is_err_code = (st == CommonCodes.GENERIC_FAILURE.value) or (st == CommonCodes.INVALID_MODE.value) or is_mfg_code
is_err_code = (st == CommonCodes.GENERIC_FAILURE.value) or (st == CommonCodes.INVALID_IN_MODE.value) or is_mfg_code
asserts.assert_true(
is_err_code, "Changing to mode %d must fail due to the current state of the device" % (self.modeFail))
# Status text is an optional string which may not always be included
Expand Down

0 comments on commit 898d118

Please sign in to comment.