|
|
@@ -84,14 +84,19 @@ def main() -> int:
|
|
|
assert bytes(model.active) == values and model.manual and model.watchdog == 30
|
|
|
commits += 1
|
|
|
if step % 4 == 0:
|
|
|
- model.stage(7, 101)
|
|
|
old = bytes(model.active)
|
|
|
+ for index, value in enumerate(values):
|
|
|
+ model.stage(index, 101 if index == 7 else value)
|
|
|
status, detail = model.command(0x01)
|
|
|
assert (status, detail) == (STATUS_BAD_VALUE, 7)
|
|
|
assert bytes(model.active) == old and model.watchdog == 30
|
|
|
invalids += 1
|
|
|
- model.stage(7, values[7])
|
|
|
- model.mask = (1 << 32) - 1
|
|
|
+ for index, value in enumerate(values):
|
|
|
+ model.stage(index, value)
|
|
|
+ status, detail = model.command(0x01)
|
|
|
+ assert (status, detail) == (STATUS_OK, 0)
|
|
|
+ assert bytes(model.active) == values and model.watchdog == 30
|
|
|
+ commits += 1
|
|
|
status, detail = model.command(0x04)
|
|
|
assert (status, detail) == (STATUS_UNSUPPORTED, 0)
|
|
|
assert model.watchdog == 30
|