From 242e90eeee452263c9dee6f94e0ee864791b7355 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 21 Sep 2010 12:25:25 +0000
Subject: [PATCH]  - create location for test runner

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38516 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/instance-profiles/testrunner.cfg | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/buildout/instance-profiles/testrunner.cfg b/buildout/instance-profiles/testrunner.cfg
index 5de5629e9f..88a413508b 100644
--- a/buildout/instance-profiles/testrunner.cfg
+++ b/buildout/instance-profiles/testrunner.cfg
@@ -1,12 +1,19 @@
 # This configuration only contains a template part which should
 # be instaciated by another recipe.
 
+[create-test-runner-place]
+recipe = plone.recipe.command
+command =
+  mkdir -p ${:test_runner_location}
+update-command = ${:command}
+test_runner_location = ${buildout:parts-directory}/test-runner
+
 [test-runner-template]
 recipe = erp5.recipe.testrunner
 zope2-location = ${software_definition:zope_software}
 
 # For now it is required define location like this.
-location = ${buildout:parts-directory}/test-runner
+location = ${create-test-runner-place:test_runner_location}
 
 # Extend products, bt5_path should be always defined
 # when this template be used.
-- 
2.30.9