travis: fail fast if --with-marvin fails with nose (#3024)

* travis: fail fast if --with-marvin fails with nose

Install missing dependency pycrypto.
This fixes issue with recent Travis runs which gave incorrect results
around smoketests with simulator where each test run failed with an
error like "nosetests: error: no such option: --with-marvin".

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2018-12-07 23:45:19 +05:30 committed by GitHub
parent 290df5f423
commit 408cce48a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -98,11 +98,9 @@ echo "<settings>
echo -e "\nInstalling some python packages: "
pip install --user --upgrade pip
for ((i=0;i<$RETRY_COUNT;i++))
do
pip install --user --upgrade lxml paramiko nose texttable ipmisim pyopenssl mock flask netaddr pylint pycodestyle six astroid > /tmp/piplog
pip install --user --upgrade lxml paramiko nose texttable ipmisim pyopenssl pycrypto mock flask netaddr pylint pycodestyle six astroid > /tmp/piplog
if [[ $? -eq 0 ]]; then
echo -e "\npython packages installed successfully"
break;

View File

@ -26,6 +26,8 @@ mkdir -p integration-test-results/component
TESTS=($@)
echo "Running tests: " ${TESTS[@]}
set -e
for suite in "${TESTS[@]}" ; do
echo "Currently running test: $suite"
nosetests --with-xunit --xunit-file=integration-test-results/$suite.xml --with-marvin --marvin-config=setup/dev/advanced.cfg test/integration/$suite.py -s -a tags=advanced,required_hardware=false --zone=Sandbox-simulator --hypervisor=simulator || true ;