[Erp5-report] r38597 gabriel - /erp5/trunk/utils/cloudooo/cloudooo/tests/testServer.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 23 16:37:41 CEST 2010


Author: gabriel
Date: Thu Sep 23 16:37:40 2010
New Revision: 38597

URL: http://svn.erp5.org?rev=38597&view=rev
Log:
remove output document when the test finish

Modified:
    erp5/trunk/utils/cloudooo/cloudooo/tests/testServer.py

Modified: erp5/trunk/utils/cloudooo/cloudooo/tests/testServer.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/tests/testServer.py?rev=38597&r1=38596&r2=38597&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/tests/testServer.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/tests/testServer.py [utf8] Thu Sep 23 16:37:40 2010
@@ -27,7 +27,8 @@
 ##############################################################################
 
 import unittest
-from os.path import join
+from os.path import join, exists
+from os import remove
 from subprocess import Popen, PIPE
 from xmlrpclib import ServerProxy, Fault
 from base64 import encodestring, decodestring
@@ -439,6 +440,8 @@ class TestServer(cloudoooTestCase):
         break
     else:
       self.fail("Not exists one file with 'impr.html' format")
+    if exists(output_url):
+      remove(output_url)
 
   def testRunGenerateMethodConvertOdpToHTML(self):
     """Test run_generate method. This test is to validate a bug convertions to




More information about the Erp5-report mailing list