summaryrefslogtreecommitdiff
path: root/test-cli/test_main.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iatec.biz>2020-10-05 11:45:04 +0200
committerManel Caro <mcaro@iatec.biz>2020-10-05 11:45:04 +0200
commita67f3fc7c10720135361ef99a8bd3110731c0011 (patch)
treee61ac9ef3313f4c6f69dc2a69a5548137bc61bed /test-cli/test_main.py
parent33fdf3f804a171b2d9c70ba39a7bad11658c5b64 (diff)
downloadboard-a67f3fc7c10720135361ef99a8bd3110731c0011.zip
board-a67f3fc7c10720135361ef99a8bd3110731c0011.tar.gz
board-a67f3fc7c10720135361ef99a8bd3110731c0011.tar.bz2
Override wait start test state
Diffstat (limited to 'test-cli/test_main.py')
-rw-r--r--test-cli/test_main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test-cli/test_main.py b/test-cli/test_main.py
index 7bf0c34..1f5d1e4 100644
--- a/test-cli/test_main.py
+++ b/test-cli/test_main.py
@@ -416,10 +416,11 @@ if __name__ == "__main__":
logObj.getlogger().info("AutoTest: {} OverrideAutoReboot: {} delay Reboot: {}".format(AutoTest, OverrideAutoReboot, delay_reboot))
-
# Check if current state is "WAIT_TEST_START". if not, waits here
- # if xmlObj.getKeyVal("test_main", "overrideCheckWaitStart", "0") == "1":
- check_first_state()
+ if xmlObj.getKeyVal("test_main", "overrideCheckWaitStart", "0") == "0":
+ check_first_state()
+ else:
+ psdbObj.setDevelStationState(globalVar.station, "WAIT_TEST_START")
# Change state to "TESTS_CHECKING_ENV"
set_next_state(StationStates.TESTS_CHECKING_ENV.name)