Пример #1
0
 def _ensure_package_present_for_all_scenarios(self, scenarios_by_rule):
     packages_required = set()
     for rule, scenarios in scenarios_by_rule.items():
         for s in scenarios:
             scenario_packages = s.script_params["packages"]
             packages_required.update(scenario_packages)
     if packages_required:
         common.install_packages(self.test_env, packages_required)
Пример #2
0
 def _ensure_package_present_for_all_scenarios(self,
                                               test_content_by_rule_id):
     packages_required = set()
     for rule_test_content in test_content_by_rule_id.values():
         for s in rule_test_content.scenarios:
             scenario_packages = s.script_params["packages"]
             packages_required.update(scenario_packages)
     if packages_required:
         common.install_packages(self.test_env, packages_required)