From 833ed49c24a2b1ba87d5bdf7c1d660e68602defc Mon Sep 17 00:00:00 2001 From: NavaL Date: Mon, 26 Sep 2016 10:58:07 +0200 Subject: cleaning pyc files before running tests --- service/go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'service/go') diff --git a/service/go b/service/go index 4950975e..b27025c4 100755 --- a/service/go +++ b/service/go @@ -111,6 +111,10 @@ function runFunctionalTests { echo "Done." } +function cleanPyc { + find . -name '*.pyc' -delete +} + if [ "$1" == 'test' ]; then set -e runPep8 @@ -118,9 +122,11 @@ if [ "$1" == 'test' ]; then runIntegrationTests "${@:2}" elif [ "$1" == 'unit' ]; then set -e + cleanPyc runUnitTests elif [ "$1" == 'integration' ]; then set -e + cleanPyc runIntegrationTests elif [ "$1" == 'pep8' ]; then set -e -- cgit v1.2.3