deb-sahara/tools/run_tests
Sergey Lukjanov ae76602586 Tools has been improved.
openstack.nose_plugin is now used instead of test_lib
tox runs tools/run_XXX commands
commands unified to be used with tox or directly

Change-Id: I7549408937ca43f4731ebbe7c52419c2577335be
2013-03-27 12:22:55 +04:00

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 $@