[Erp5-report] r44659 nicolas - /erp5/trunk/utils/cloudooo/cloudooo/handler/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 28 11:46:15 CEST 2011


Author: nicolas
Date: Mon Mar 28 11:46:15 2011
New Revision: 44659

URL: http://svn.erp5.org?rev=44659&view=rev
Log:
improve error message to ease debugging

Modified:
    erp5/trunk/utils/cloudooo/cloudooo/handler/tests/runHandlerUnitTest.py

Modified: erp5/trunk/utils/cloudooo/cloudooo/handler/tests/runHandlerUnitTest.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/handler/tests/runHandlerUnitTest.py?rev=44659&r1=44658&r2=44659&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/handler/tests/runHandlerUnitTest.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/handler/tests/runHandlerUnitTest.py [utf8] Mon Mar 28 11:46:15 2011
@@ -51,9 +51,10 @@ def run(handler_name):
   python_extension = '.py'
   if test_name[-3:] == python_extension:
     test_name = test_name[:-3]
-  if not path.exists(path.join(environment_path,
-                               '%s%s' % (test_name, python_extension))):
-    exit("%s not exists\n" % test_name)
+  full_path = path.join(environment_path, '%s%s' % (test_name,
+                                                    python_extension))
+  if not path.exists(full_path):
+    exit("%s does not exists\n" % full_path)
 
   from cloudooo.handler.tests.handlerTestCase import startFakeEnvironment
   from cloudooo.handler.tests.handlerTestCase import stopFakeEnvironment



More information about the Erp5-report mailing list