[Erp5-report] r20736 - /erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 22 09:37:40 CEST 2008


Author: jerome
Date: Tue Apr 22 09:37:38 2008
New Revision: 20736

URL: http://svn.erp5.org?rev=20736&view=rev
Log:
call a script to set the base_url so that functional tests uses this as a base
instead of the portal ID

Modified:
    erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py?rev=20736&r1=20735&r2=20736&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py Tue Apr 22 09:37:38 2008
@@ -96,6 +96,7 @@
     send_mail = 1
 
 def main():
+  setBaseUrl()
   setPreference()
   unsubscribeFromTimerService()
   status = getStatus()
@@ -169,6 +170,11 @@
   urllib2.urlopen('http://%s:%d/%s/BTZuite_setPreference?__ac_name='
               'ERP5TypeTestCase&__ac_password=&working_copy_list=%s' %
                                   (host, port, portal_name, bt5_dir_list))
+
+def setBaseUrl():
+  urllib2.urlopen('http://%s:%d/%s/Zuite_setBaseUrl?__ac_name='
+              'ERP5TypeTestCase&__ac_password=&base_url=%s' %
+                                  (host, port, portal_name, portal_name))
 
 def unsubscribeFromTimerService():
   urllib2.urlopen('http://%s:%d/%s/portal_activities/?unsubscribe:method='




More information about the Erp5-report mailing list