Revision: b9c7668d28c7
Branch: default
Author: Robot Framework Developers ([email protected])
Date: Thu May 30 05:35:01 2013
Log: pass suites to namespace after they have parent - fixes some
tests that verifies suite.longname
http://code.google.com/p/robotframework/source/detail?r=b9c7668d28c7
Modified:
/src/robot/new_running/runner.py
=======================================
--- /src/robot/new_running/runner.py Thu May 30 02:26:45 2013
+++ /src/robot/new_running/runner.py Thu May 30 05:35:01 2013
@@ -53,6 +53,12 @@
result = TestSuite(name=suite.name,
source=suite.source,
starttime=utils.get_timestamp())
+ if not self.result:
+ result.set_criticality(suite.criticality.critical_tags,
+ suite.criticality.non_critical_tags)
+ self.result = Result(root_suite=result)
+ else:
+ self._suite.suites.append(result)
ns = Namespace(result,
self._context.namespace.variables if self._context
else None,
UserLibrary(suite.user_keywords),
@@ -65,12 +71,6 @@
result.doc = self._resolve_setting(suite.doc)
result.metadata = [(self._resolve_setting(n),
self._resolve_setting(v))
for n, v in suite.metadata.items()]
- if not self.result:
- result.set_criticality(suite.criticality.critical_tags,
- suite.criticality.non_critical_tags)
- self.result = Result(root_suite=result)
- else:
- self._suite.suites.append(result)
self._suite = result
self._suite_status = SuiteStatus(self._suite_status,
self._settings.exit_on_failure,
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.