From 90e4a8006b49daf8cde4db26cbd5e87c456f0b7d Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Thu, 26 Jul 2007 08:06:37 +0000 Subject: [PATCH] Fixed business template path to adjust the test server environment. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15320 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testXHTML.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py index 3da8dae394..4eadbc53c3 100644 --- a/product/ERP5/tests/testXHTML.py +++ b/product/ERP5/tests/testXHTML.py @@ -38,6 +38,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.CMFCore.utils import getToolByName from AccessControl.SecurityManagement import newSecurityManager from zLOG import LOG +from glob import glob import time try: @@ -49,7 +50,7 @@ except ImportError: # Test Setting # INSTANCE_HOME = os.environ['INSTANCE_HOME'] -bt5_path = os.path.join(INSTANCE_HOME, 'bt5') +bt5_path = glob(os.path.join(INSTANCE_HOME, 'bt5', '*'))[0] # dependency order target_business_templates = ( 'erp5_base', -- 2.30.9