23 lines
484 B
Bash
Executable File
23 lines
484 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${VIRTUAL_ENV:+x} ]
|
|
then echo "VIRTUAL_ENV is already specified"
|
|
else export VIRTUAL_ENV=.venv
|
|
fi
|
|
|
|
echo "VIRTUAL_ENV = $VIRTUAL_ENV"
|
|
|
|
echo "Running tests"
|
|
echo "============="
|
|
|
|
export NOSE_WITH_OPENSTACK=1
|
|
export NOSE_OPENSTACK_COLOR=1
|
|
export NOSE_OPENSTACK_RED=0.05
|
|
export NOSE_OPENSTACK_YELLOW=0.025
|
|
export NOSE_OPENSTACK_SHOW_ELAPSED=1
|
|
export NOSE_OPENSTACK_STDOUT=1
|
|
export NOSE_XUNIT=1
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
$VIRTUAL_ENV/bin/nosetests $@
|