In run_tests.sh, function init_testr will initialize testr if the
directory .testrepository is not existed. Actually, testr will do
the check before run the test:
In Python package testrepository, setuptools_command.py:Testr.run
68 def run(self):
69 """Set up testr repo, then run testr"""
70 if not os.path.isdir(".testrepository"):
71 self._run_testr("init")
So, init_testr can be removed safely.
Fixes Bug #
1224285
Change-Id: Ia74d9fff92b8efba9b72e5c7387f761144daa193
installvenvopts="--no-site-packages"
fi
-function init_testr {
- if [ ! -d .testrepository ]; then
- ${wrapper} testr init
- fi
-}
function run_tests {
# Cleanup *pyc
rm -f tests.sqlite
fi
-init_testr
run_tests
# NOTE(sirp): we only want to run pep8 when we're running the full-test suite,