Fixed network test (thanks Vish!) and fixed run_tests.sh.
This commit is contained in:
@@ -110,7 +110,6 @@ def main():
|
||||
FLAGS.num_networks = 5
|
||||
path = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'..',
|
||||
'_trial_temp',
|
||||
'nova.sqlite'))
|
||||
FLAGS.sql_connection = 'sqlite:///%s' % path
|
||||
action = argv[1]
|
||||
|
||||
12
run_tests.sh
12
run_tests.sh
@@ -36,7 +36,8 @@ done
|
||||
|
||||
if [ $never_venv -eq 1 ]; then
|
||||
# Just run the test suites in current environment
|
||||
python run_tests.py
|
||||
rm -f nova.sqlite
|
||||
nosetests -v
|
||||
exit
|
||||
fi
|
||||
|
||||
@@ -47,7 +48,8 @@ if [ $force -eq 1 ]; then
|
||||
fi
|
||||
|
||||
if [ -e ${venv} ]; then
|
||||
${with_venv} python run_tests.py $@
|
||||
${with_venv} rm -f nova.sqlite
|
||||
${with_venv} nosetests -v $@
|
||||
else
|
||||
if [ $always_venv -eq 1 ]; then
|
||||
# Automatically install the virtualenv
|
||||
@@ -59,9 +61,11 @@ else
|
||||
# Install the virtualenv and run the test suite in it
|
||||
python tools/install_venv.py
|
||||
else
|
||||
python run_tests.py
|
||||
rm -f nova.sqlite
|
||||
nosetests -v
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
${with_venv} python run_tests.py $@
|
||||
${with_venv} rm -f nova.sqlite
|
||||
${with_venv} nosetests -v $@
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user