diff options
author | Thomas Duval <thomas.duval@orange.com> | 2017-12-14 09:34:45 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2017-12-14 09:34:45 +0100 |
commit | 277da07492c1440af5098c25f26b94739ddb41a8 (patch) | |
tree | 3c902d16883324cd88a7aa39a9a17a4c883df60e | |
parent | bf495b93579a71dd01460cfeaf750703b239892d (diff) |
Add python packages if requirements.txt exists in tests/unit_python
Change-Id: I3689b4ed98ae690b0747536353fc536730c5b7ec
-rw-r--r-- | moonv4/templates/python_unit_test/run_tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 . |