(mods: Modules, action_name, section)
| 172 | |
| 173 | |
| 174 | def run_module_section(mods: Modules, action_name, section): |
| 175 | full_section_name = MOD_SECTION_TPL % (section) |
| 176 | (which_ran, failures) = mods.run_section(full_section_name) |
| 177 | total_attempted = len(which_ran) + len(failures) |
| 178 | if total_attempted == 0: |
| 179 | msg = "No '%s' modules to run under section '%s'" % ( |
| 180 | action_name, |
| 181 | full_section_name, |
| 182 | ) |
| 183 | sys.stderr.write("%s\n" % (msg)) |
| 184 | LOG.debug(msg) |
| 185 | return [] |
| 186 | else: |
| 187 | LOG.debug( |
| 188 | "Ran %s modules with %s failures", len(which_ran), len(failures) |
| 189 | ) |
| 190 | return failures |
| 191 | |
| 192 | |
| 193 | def apply_reporting_cfg(cfg): |
no test coverage detected