[Neo-report] r2618 olivier.cros - /trunk/neo/tests/functional/__init__.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 18 16:56:50 CET 2011


Author: olivier.cros
Date: Tue Jan 18 16:56:50 2011
New Revision: 2618

Log:
Fix commit 2617

Fixes a bug related to the misnamed command variable. Creates a new
temporary variable to stock the path to a command and test it.

Modified:
    trunk/neo/tests/functional/__init__.py

Modified: trunk/neo/tests/functional/__init__.py
==============================================================================
--- trunk/neo/tests/functional/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/functional/__init__.py [iso-8859-1] Tue Jan 18 16:56:50 2011
@@ -61,9 +61,9 @@ class NEOProcess(object):
         split_path = path.split(":")
        
         for elt_path in split_path:
-            command = "%s/%s" % (elt_path, command)
-            if os.path.exists(command):
-                self.command = command
+            command_tmp = "%s/%s" % (elt_path, command)
+            if os.path.exists(command_tmp):
+                self.command = command_tmp
                 break
         else:
             raise NotFound, '%s not found' % (command)




More information about the Neo-report mailing list