@argh.arg('<STR_LIT>', '<STR_LIT>', type=str)<EOL>@argh.arg('<STR_LIT>', '<STR_LIT>', choices=['<STR_LIT>', '<STR_LIT:text>'], default='<STR_LIT:text>')<EOL>@argh.arg('<STR_LIT>', action='<STR_LIT:store_true>')<EOL>@argh.arg('<STR_LIT>', help='<STR_LIT>')<EOL>@argh.arg('<STR_LIT>', help='<STR_LIT>')<EOL>@argh.arg('<STR_LIT>', choices=('<STR_LIT:all>', '<STR_LIT>'),<EOL>help='<STR_LIT>', default='<STR_LIT>')<EOL>@argh.wrap_errors([KeyboardInterrupt, BrokenPipeError] + client_errors)<EOL>def run_track(track,<EOL>result_hosts=None,<EOL>crate_root=None,<EOL>output_fmt=None,<EOL>logfile_info=None,<EOL>logfile_result=None,<EOL>failfast=False,<EOL>sample_mode='<STR_LIT>'):
with Logger(output_fmt=output_fmt,<EOL>logfile_info=logfile_info,<EOL>logfile_result=logfile_result) as log:<EOL><INDENT>executor = Executor(<EOL>track_dir=os.path.dirname(track),<EOL>log=log,<EOL>result_hosts=result_hosts,<EOL>crate_root=crate_root,<EOL>fail_fast=failfast,<EOL>sample_mode=sample_mode<EOL>)<EOL>error = executor.execute(toml.load(track))<EOL>if error:<EOL><INDENT>sys.exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>
Execute a track file