mirror of
https://github.com/3cky/mbusd.git
synced 2024-09-29 04:07:41 +02:00
ci: moved test stage before the build stage
This commit is contained in:
parent
0a35ef68b6
commit
1c94fda030
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
stages:
|
stages:
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
|
- build
|
||||||
|
|
||||||
.mbusd_job_template: &mbusd_job_template # Hidden key that defines an anchor
|
.mbusd_job_template: &mbusd_job_template # Hidden key that defines an anchor
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
|
@ -34,6 +34,8 @@ class TestModbusRequests(unittest.TestCase):
|
|||||||
cls.log.debug("3. run mbusd to be tested with the binary:%s" % MBUSD_BINARY)
|
cls.log.debug("3. run mbusd to be tested with the binary:%s" % MBUSD_BINARY)
|
||||||
cls.mbusd_main = Popen([MBUSD_BINARY, "-d", "-L", "-v9", "-p/tmp/pts0", "-s19200", "-P" + str(MBUSD_PORT)])
|
cls.mbusd_main = Popen([MBUSD_BINARY, "-d", "-L", "-v9", "-p/tmp/pts0", "-s19200", "-P" + str(MBUSD_PORT)])
|
||||||
# wait a little bit for mbusd to come up
|
# wait a little bit for mbusd to come up
|
||||||
|
# alternatively do a poll for the socket
|
||||||
|
# https://stackoverflow.com/questions/667640/how-to-tell-if-a-connection-is-dead-in-python/667702#667702
|
||||||
sleep(5)
|
sleep(5)
|
||||||
|
|
||||||
cls.log.debug("4. connect the modbus TCP client to mbusd")
|
cls.log.debug("4. connect the modbus TCP client to mbusd")
|
||||||
|
Loading…
Reference in New Issue
Block a user