Skip to content
Snippets Groups Projects
Commit b621b769 authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Added tox execution in the service install script - seems that tox is running...

Added tox execution in the service install script - seems that tox is running fine within lxc containers
parent a9ce61ad
No related branches found
No related tags found
No related merge requests found
...@@ -139,6 +139,16 @@ if [ $? -ne 0 ] ; then ...@@ -139,6 +139,16 @@ if [ $? -ne 0 ] ; then
exit 1 exit 1
fi fi
# running tests using tox
echo "----> Running tox"
TOX_OUTPUT="$(tox)"
# check if tox output contains the 'congratulations :)' bit for tests passed
if [[ $TOX_OUTPUT != *"congratulations :)"* ]]; then
echo "CLMC service unit tests failed."
exit 1
fi
echo "----> Tox execution of unit tests passed successfully"
# install the service # install the service
echo "----> Installing CLMC web service" echo "----> Installing CLMC web service"
pip3 install . pip3 install .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment