Skip to content
Snippets Groups Projects
Commit 1d625272 authored by Gabriel Fedel's avatar Gabriel Fedel :speech_balloon: Committed by Joao Paulo Martins
Browse files

tests: Improve lps interlock test

parent 1a7b7a26
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ class TestLPSIlock:
def test_simulated(self, prefix, board):
for state in ["RESET", "INIT", "ON"]:
assert change_state(prefix, state)
write_reg(board, "0xF05", "0x1")
write_reg(board, "0xF06", "0x1")
......@@ -16,10 +16,12 @@ class TestLPSIlock:
sleep(1)
assert caget(prefix + ":LPS-ILCKSTAT") == 1
write_reg(board, "0xF05", "0x7")
write_reg(board, "0xF06", "0x0")
write_reg(board, "0xF05", "0x0")
run_evr_pulses("TR-" + prefix, 2)
run_evr_pulses("TR-" + prefix)
sleep(1)
run_evr_pulses("TR-" + prefix)
sleep(1)
assert caget(prefix + ":LPS-ILCKSTAT") == 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment