summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--buildout.cfg10
1 files changed, 4 insertions, 6 deletions
diff --git a/buildout.cfg b/buildout.cfg
index 08f26e6..158b125 100644
--- a/buildout.cfg
+++ b/buildout.cfg
@@ -48,20 +48,18 @@ input = inline:
# Run tests in the same steps as it is run in Jenkins
set -xe
scratch=$(mktemp -d -t buildroot.XXXXXX)
- function cleanUp {
- rm -rf $scratch
- }
+
cd ${buildout:rpmdeplintpath} && python setup.py install --root $scratch
PYTHONPATH=$scratch/usr/lib/python2.7/site-packages \
PATH=$scratch/usr/bin:$PATH \
- ${buildout:directory}/bin/py.test -vv -x ${buildout:rpmdeplintpath}/acceptance_tests
+ ${buildout:directory}/bin/py.test ${buildout:rpmdeplintpath}/acceptance_tests $@
PYTHONPATH=$scratch/usr/lib/python2.7/site-packages \
PATH=$scratch/usr/bin:$PATH \
- ${buildout:directory}/bin/py.test -vv -x ${buildout:rpmdeplintpath}/rpmdeplint
+ ${buildout:directory}/bin/py.test ${buildout:rpmdeplintpath}/rpmdeplint $@
- trap cleanUp EXIT
+ rm -rf $scratch
mode = 755
output = bin/test