Author: pekka.klarck
Date: Sat Apr 11 11:42:12 2009
New Revision: 1779

Modified:
   trunk/src/robot/running/model.py

Log:
cleanup

Modified: trunk/src/robot/running/model.py
==============================================================================
--- trunk/src/robot/running/model.py    (original)
+++ trunk/src/robot/running/model.py    Sat Apr 11 11:42:12 2009
@@ -73,18 +73,18 @@
             if self._exit_on_failure and not child_err and \
                    suite.critical_stats.failed:
                 child_err = self._exit_on_failure_error
-        testnames = utils.NormalizedDict()
+        executed_tests = []
         for test in self.tests:
+            normname = utils.normalize(test.name)
+            if normname in executed_tests:
+ LOGGER.warn("Test case '%s' in suite '%s' executed multiple "
+                            "times"% (test.name, self.longname))
+            executed_tests.append(normname)
             test.run(output, self.namespace, child_err)
             if self._exit_on_failure and not child_err and \
                     test.status == 'FAIL' and test.critical == 'yes':
                 child_err = self._exit_on_failure_error
             self._set_prev_test_variables(self.namespace.variables, test)
-            if testnames.has_key(test.name):
- LOGGER.warn("Test case '%s' in suite '%s' executed multiple "
-                            "times"% (test.name, self.longname))
-            else:
-                testnames[test.name] = True
         self.set_status()
         self.message = self._get_my_error(error, init_err, setup_err)
         self.namespace.variables['${SUITE_STATUS}'] = self.status

Reply via email to