mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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:
parent
290df5f423
commit
408cce48a5
@ -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;
|
||||
|
||||
@ -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 ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user