Author: pekka.klarck
Date: Sat Jun 13 08:34:40 2009
New Revision: 2028

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

Log:
set test status to RUNNING before calling start_test (issue 328)

Modified: trunk/src/robot/running/model.py
==============================================================================
--- trunk/src/robot/running/model.py    (original)
+++ trunk/src/robot/running/model.py    Sat Jun 13 08:34:40 2009
@@ -160,6 +160,7 @@
         self.keywords = [ KeywordFactory(kw) for kw in data.keywords ]

     def run(self, output, namespace, error=None):
+        self.status = 'RUNNING'
         self.starttime = utils.get_timestamp()
         init_err = self._init_test(namespace.variables)
         error = error or init_err
@@ -193,7 +194,6 @@
     def _run(self, output, namespace):
         namespace.variables['${TEST_NAME}'] = self.name
         namespace.variables['@{TEST_TAGS}'] = self.tags
-        self.status = 'RUNNING'
         self.timeout.start()
         setup_err = self._run_fixture(self.setup, output, namespace)
         kw_err = self._run_keywords(output, namespace, setup_err)

Reply via email to