Add python packages if requirements.txt exists in tests/unit_python 23/48923/1
authorThomas Duval <thomas.duval@orange.com>
Thu, 14 Dec 2017 08:34:45 +0000 (09:34 +0100)
committerThomas Duval <thomas.duval@orange.com>
Thu, 14 Dec 2017 08:34:45 +0000 (09:34 +0100)
Change-Id: I3689b4ed98ae690b0747536353fc536730c5b7ec

moonv4/templates/python_unit_test/run_tests.sh

index 68b75ef..6c586f8 100644 (file)
@@ -1,7 +1,13 @@
 #!/usr/bin/env bash
 
 cd /data
+pip3 install -r tests/unit_python/requirements.txt --upgrade
 pip3 install .
 
+if [ -f /data/tests/unit_python/run_tests.sh ];
+then
+    bash /data/tests/unit_python/run_tests.sh;
+fi
+
 cd /data/tests/unit_python
 pytest .