weblate/ci/lib
Michal Čihař 322778efc5 Ignore unclosed resource warnigs on Travis
These are too noisy and usually out of our control, typically
these are produced by httpretty and selenium.

Signed-off-by: Michal Čihař <michal@cihar.com>
2018-08-28 11:22:32 +02:00

16 lines
260 B
Text

# shell library to help executing tests
set -x
coverage erase
check() {
RET=$?
if [ $RET -ne 0 ] ; then
exit $RET
fi
}
run_coverage() {
python -W default -W ignore:unclosed:ResourceWarning -m coverage run --source . --append "$@"
}