summaryrefslogtreecommitdiff
path: root/test-cli/test_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test_main.py')
-rw-r--r--test-cli/test_main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-cli/test_main.py b/test-cli/test_main.py
index 36d5fb1..a8eff91 100644
--- a/test-cli/test_main.py
+++ b/test-cli/test_main.py
@@ -174,7 +174,7 @@ def main():
runner1 = SimpleTestRunner(psdbObj)
testresult = runner1.run(suite1)
- #Execute manually tests
+ # Execute manually tests
for test in tests_manually_executed:
test.execute()
@@ -232,7 +232,7 @@ def main():
# get barcode using the scanner, only if autotest is disabled
autotest = psdbObj.get_setup_variable("AUTOTEST_" + globalVar.station)
- if autotest == "True":
+ if int(autotest) == 1:
psdbObj.set_factorycode(globalVar.g_uuid, "1234567890") # fake factory code
else:
qrreceived = False
@@ -268,7 +268,7 @@ def main():
# reset board if AUTOTEST is enabled
autotest = psdbObj.get_setup_variable("AUTOTEST_" + globalVar.station)
- if autotest == "True":
+ if int(autotest) == 1:
os.system('reboot')