[tor-commits] [sbws/master] Sart an http server during integration tests

pastly at torproject.org pastly at torproject.org
Tue Jun 26 15:36:49 UTC 2018


commit 313eeae2fb805bda6ee8ca46e36f0b0b9998d8d7
Author: Matt Traudt <sirmatt at ksu.edu>
Date:   Sun Jun 17 21:22:35 2018 -0400

    Sart an http server during integration tests
---
 tox.ini | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tox.ini b/tox.ini
index a3af1ef..bfe4e97 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,13 +23,16 @@ whitelist_externals =
     tar
     bash
     sleep
+    cat
 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 > {envtmpdir}/http-server.log &"
     sleep 30
     coverage run -a --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest -s {toxinidir}/tests/integration -vv
     bash {envtmpdir}/net/stop.sh
+    cat {envtmpdir}/http-server.log
 
 [testenv:lint]
 skip_install = True





More information about the tor-commits mailing list