summaryrefslogtreecommitdiff
path: root/test-cli
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-09-14 17:40:45 +0200
committerHector Fernandez <hector@iatec.biz>2020-09-14 17:40:45 +0200
commit8765219910c95d0712ac0b2c27d33fd7a21fe3b8 (patch)
tree2cfe68361ee0a503e2787ac68dc6fdc334414379 /test-cli
parentf5f3398291c40bcf0a8fdedb48d4821e8e331c3c (diff)
downloadboard-8765219910c95d0712ac0b2c27d33fd7a21fe3b8.zip
board-8765219910c95d0712ac0b2c27d33fd7a21fe3b8.tar.gz
board-8765219910c95d0712ac0b2c27d33fd7a21fe3b8.tar.bz2
IGEP0048: Solved PLC test error. The PLC MAC address can be changed now.
Diffstat (limited to 'test-cli')
-rw-r--r--test-cli/setup.xml2
-rw-r--r--test-cli/test/helpers/plc.py4
-rw-r--r--test-cli/test/tests/qplc.py1
3 files changed, 4 insertions, 3 deletions
diff --git a/test-cli/setup.xml b/test-cli/setup.xml
index c867e44..1146e8e 100644
--- a/test-cli/setup.xml
+++ b/test-cli/setup.xml
@@ -2,7 +2,7 @@
<data>
<setup>
<test_main qr_wait_time="30" autotest="0" OverrideAutoReboot="1" delayReboot="1" wait_test_start="240"/>
- <db dbname="testsrv" type="PgSQLConnection" host="192.168.60.3" port="5432" user="admin" password="Idkfa2009" />
+ <db dbname="testsrv" type="PgSQLConnection" host="dbtest01.isee.biz" port="5432" user="admin" password="Idkfa2009" />
<qaudio play_dtmf_file="/root/hwtest-files/dtmf-13579.wav" to="/mnt/station_ramdisk" record_dtmf_file="dtmf_recorded_{}.wav" recordtime="2.00" rate="8000" aplay_run_delay="0.1"/>
<qusb loops="3" pathfrom="/root/hwtest-files" file="usb-test.bin" file_md5="usb-test.bin.md5" pathto="/mnt/test/disk2"/>
<qusb2 loops="3" pathfrom="/mnt/test/disk1" file="usb-test.bin" file_md5="usb-test.bin.md5" pathto="/nfs/station/tmp"/>
diff --git a/test-cli/test/helpers/plc.py b/test-cli/test/helpers/plc.py
index b1ec382..c9ef774 100644
--- a/test-cli/test/helpers/plc.py
+++ b/test-cli/test/helpers/plc.py
@@ -36,7 +36,7 @@ class dcpPLC(object):
def setPLCReset(self):
self.__nRest = gpio('75', 'out', '0')
self.__nRest = gpio('69', 'out', '0')
- time.sleep(0.25)
+ time.sleep(1)
self.__nRest = gpio('69', 'out', '1')
self.__nRest = gpio('75', 'out', '1')
@@ -58,7 +58,7 @@ class dcpPLC(object):
return False, "set var failed {} {}".format(var,Error.exit_code)
return True, ''
- def set_plc2 (self, var1, value1,var2, value2, password):
+ def set_plc2 (self, var1, value1, var2, value2, password):
try:
res = self.__myConfigTool("-o", "SET", "-p", "{}={}".format(var1, value1), "-p", "{}={}".format(var2, value2), "-w", "{}".format(password))
print(res)
diff --git a/test-cli/test/tests/qplc.py b/test-cli/test/tests/qplc.py
index 27bbbea..48d600a 100644
--- a/test-cli/test/tests/qplc.py
+++ b/test-cli/test/tests/qplc.py
@@ -82,6 +82,7 @@ class Qplc(unittest.TestCase):
self.fail('BUG: ?????')
logObj.getlogger().info("MAC {}".format(res[0]))
plcMAC = res[0][0]
+ time.sleep(12)
self.__plc.set_plc2('SYSTEM.PRODUCTION.SECTOR0_UNLOCK_PASSWORD',
self.__factory_password,
'SYSTEM.PRODUCTION.MAC_ADDR',