From: Thomas Duval Date: Thu, 14 Dec 2017 08:34:45 +0000 (+0100) Subject: Add python packages if requirements.txt exists in tests/unit_python X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=277da07492c1440af5098c25f26b94739ddb41a8;p=moon.git Add python packages if requirements.txt exists in tests/unit_python Change-Id: I3689b4ed98ae690b0747536353fc536730c5b7ec --- diff --git a/moonv4/templates/python_unit_test/run_tests.sh b/moonv4/templates/python_unit_test/run_tests.sh index 68b75efa..6c586f87 100644 --- a/moonv4/templates/python_unit_test/run_tests.sh +++ b/moonv4/templates/python_unit_test/run_tests.sh @@ -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 .