Commit c3c29845 authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos-testing] Pre-setup erp5-util before run tests

 This is a workarround to circunvent setuptools/distutils conflicts when run python setup.py test for the first time.
parent 22584961
[buildout] [buildout]
parts = parts =
erp5-util-setup
test-runner test-runner
sh-environment sh-environment
...@@ -24,6 +25,11 @@ git-executable = ${git:location}/bin/git ...@@ -24,6 +25,11 @@ git-executable = ${git:location}/bin/git
<= download-source <= download-source
repository = ${erp5-util-repository:location} repository = ${erp5-util-repository:location}
[erp5-util-setup]
recipe = plone.recipe.command
command = echo "Updating setup...";cd $${erp5-util:location}; export PATH="$${slapos-test-runner:prepend-path}:$PATH"; export CPPFLAGS="$${environment:CPPFLAGS}"; export LDFLAGS="$${environment:LDFLAGS}"; export PYTHONPATH="$${environment:PYTHONPATH}"; python setup.py test -n; python setup.py test -n; python setup.py test -n; python setup.py test -n
update-command = $${:command}
[test-runner] [test-runner]
recipe = slapos.cookbook:egg_test recipe = slapos.cookbook:egg_test
run-test-suite = $${create-directory:bin}/runTestSuite run-test-suite = $${create-directory:bin}/runTestSuite
......
...@@ -45,7 +45,7 @@ branch = master ...@@ -45,7 +45,7 @@ branch = master
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
md5sum = e8b87313667c944567029c61c9c0bd2e md5sum = 194278f0a65d692bd165a909e6c83148
output = ${buildout:directory}/template.cfg output = ${buildout:directory}/template.cfg
mode = 640 mode = 640
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment