summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRóman Joost <rjoost@redhat.com>2016-07-12 14:31:50 +1000
committerRóman Joost <rjoost@redhat.com>2016-07-12 14:31:50 +1000
commitdd40164178ce24634c3d3b4428d6981a3a693057 (patch)
treeb7b3500115a6b2efda0bf97d57fa00262f37ec4d
parent7f5636d725f587f4ac131b1d1171bf24a410491b (diff)
Allow to pass additional parameters to py.testHEADmaster
-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