Commit adcaf04d authored by juga's avatar juga
Browse files

CI: run scanner using the test network

as part of the integration tests.

Fixes bug #28933. Bugfix v0.1.0.
parent 5f86552a
......@@ -43,15 +43,21 @@ whitelist_externals =
bash
sleep
wget
mkdir
commands =
tar -C {envtmpdir} -vxf {toxinidir}/tests/integration/net.tar
bash {envtmpdir}/net/start.sh
bash -c "time python3 {envtmpdir}/net/wait.py {envtmpdir}/net/{auth,relay,exit}*"
bash -c "python3 {toxinidir}/scripts/tools/sbws-http-server.py --port 28888 &>/dev/null &"
sleep 15
sleep 1
wget -O/dev/null http://127.0.0.1:28888/sbws.bin
; Run actually the scanner
mkdir -p /tmp/.sbws
; This add around 3min more to the tests
sbws -c {toxinidir}/tests/integration/sbws_testnet.ini scanner
coverage run -a --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest -s {toxinidir}/tests/integration -vv
bash {envtmpdir}/net/stop.sh
rm -rf /tmp/.sbws
[testenv:lint]
skip_install = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment