summaryrefslogtreecommitdiff
path: root/service/go
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-09-26 10:58:07 +0200
committerNavaL <ayoyo@thoughtworks.com>2016-09-26 10:58:07 +0200
commit833ed49c24a2b1ba87d5bdf7c1d660e68602defc (patch)
tree2c219ad1bd0aa8b9829b453d819d28dfc6d0c1da /service/go
parente70df3d6d654c13992d5f58b9c2b7606548e3316 (diff)
cleaning pyc files before running tests
Diffstat (limited to 'service/go')
-rwxr-xr-xservice/go6
1 files changed, 6 insertions, 0 deletions
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