def set_runner_scenario(testcase, scenario_name, clear_tracker=True):
 scenarios = testcase.runner_scenarios
 testcase.scenario = scenarios[scenario_name]
 set_pidlockfile_scenario(testcase, testcase.scenario['pidlockfile_scenario_name'])
 if clear_tracker:
  testcase.mock_tracker.clear()

def set_runner_scenario ( testcase , scenario_name , clear_tracker = True ) : scenarios = testcase . runner_scenarios testcase . scenario = scenarios [ scenario_name ] set_pidlockfile_scenario ( testcase , testcase . scenario [ 'pidlockfile_scenario_name' ] ) if clear_tracker : testcase . mock_tracker . clear ( )
set the daemonrunner test scenario for the test case .