summaryrefslogtreecommitdiff
path: root/test-cli/test_main.py
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-07-06 14:08:27 +0200
committerHector Fernandez <hector@iatec.biz>2020-07-06 14:08:27 +0200
commit0e8e3ecd4b9be71c41008b95950d089819622dff (patch)
tree6c73dd034d81eaf1b5381e6c665277903d369408 /test-cli/test_main.py
parent5dcd213c28451ac210703dc5bf9bf538671a0682 (diff)
downloadboard-0e8e3ecd4b9be71c41008b95950d089819622dff.zip
board-0e8e3ecd4b9be71c41008b95950d089819622dff.tar.gz
board-0e8e3ecd4b9be71c41008b95950d089819622dff.tar.bz2
Corrected some errors in USB and USBDUAL tests.
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')