Files
charm-openstack-loadbalancer/run_tests
2021-08-21 11:52:30 +00:00

18 lines
338 B
Bash
Executable File

#!/bin/sh -e
# Copyright 2021 Ubuntu
# See LICENSE file for licensing details.
if [ -z "$VIRTUAL_ENV" -a -d venv/ ]; then
. venv/bin/activate
fi
if [ -z "$PYTHONPATH" ]; then
export PYTHONPATH="lib:src"
else
export PYTHONPATH="lib:src:$PYTHONPATH"
fi
flake8
coverage run --source=src -m unittest -v "$@"
coverage report -m