def _execute_run(self, config, naarad_obj):
failure_handler = FailureHandler(config.mapping.get("<STR_LIT>"))<EOL>loop_all_tests = int(runtime.get_active_config("<STR_LIT>",<NUM_LIT:1>))<EOL>self.compute_total_iterations_per_test()<EOL>for i in xrange(loop_all_tests):<EOL><INDENT>for tests in self.tests:<EOL><INDENT>if not isinstance(tests, list) or len(tests) == <NUM_LIT:1>:<EOL><INDENT>if isinstance(tests, list):<EOL><INDENT>test = tests[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>test = tests<EOL><DEDENT>self._execute_single_test(config, failure_handler, naarad_obj, test)<EOL><DEDENT>else:<EOL><INDENT>self._execute_parallel_tests(config, failure_handler, naarad_obj, tests)<EOL><DEDENT><DEDENT><DEDENT>self._copy_logs()<EOL>if not self.master_config.mapping.get("<STR_LIT>", False):<EOL><INDENT>naarad_obj.signal_stop(config.naarad_id)<EOL>self._execute_performance(naarad_obj)<EOL><DEDENT>self._execute_verification()<EOL>
Executes tests for a single config