[Erp5-report] r42608 rafael - /erp5/trunk/utils/erp5.appliance.test/src/test.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sun Jan 23 00:00:18 CET 2011


Author: rafael
Date: Sun Jan 23 00:00:18 2011
New Revision: 42608

URL: http://svn.erp5.org?rev=42608&view=rev
Log:
Verbose/log dumped-versions.cfg. This permit we know what where the eggs used during the build.

Modified:
    erp5/trunk/utils/erp5.appliance.test/src/test.py

Modified: erp5/trunk/utils/erp5.appliance.test/src/test.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.appliance.test/src/test.py?rev=42608&r1=42607&r2=42608&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] (original)
+++ erp5/trunk/utils/erp5.appliance.test/src/test.py [utf8] Sun Jan 23 00:00:18 2011
@@ -422,8 +422,10 @@ def run_once(config, software_path,
       if config.verbose is True:
         buildout_command.append('-v')
       callWithTimeout(buildout_command, config, timeout=config.buildout_timeout, cwd=software_path)
-      svn = os.path.join(software_path, 'parts', 'subversion', 'bin', 'svn')
 
+      
+
+      svn = os.path.join(software_path, 'parts', 'subversion', 'bin', 'svn')
       # Assert software
       callWithTimeout([svn, 'export', '--non-interactive',
         '--trust-server-cert',
@@ -533,9 +535,16 @@ def run_once(config, software_path,
   finally:
     if exc_info is not None:
       config.logger.warning('Test stopped with exception:\n', exc_info=exc_info)
-    ran_trick_list = ["------------------------------------------------------"
-        "----------------"]
+
+    ran_trick_list = []
     a = ran_trick_list.append
+    version_file_path = os.path.join(software_path,"dumped-versions.cfg")
+    if os.path.exists(version_file_path):
+      config.logger.info("-------- software/dumped-versions.cfg --------")
+      f = open(version_file_path, "r")
+      config.logger.info(f.read())
+      f.close()
+    a("----------------------------------------------------------------------")
     a('Ran 1 test in %.2fs' % (time.time() - begin,))
     if status:
       a('OK')
@@ -602,7 +611,6 @@ def run(config,
     config.logger.info('Sleeping for %s seconds' % sleep_period)
     time.sleep(sleep_period)
 
-
 class Parser(OptionParser):
   """
   Parse all arguments.



More information about the Erp5-report mailing list