#NEWLINE# def local_run( ) : #NEWLINE# #INDENT# ( opts , arg_error ) = parse_args ( ) #NEWLINE# if opts . verbose : #NEWLINE# #INDENT# log . getLogger ( ) . setLevel ( log . DEBUG ) #NEWLINE# #UNINDENT# proj_cls = load_project ( opts . project_name ) #NEWLINE# if opts . reduce : #NEWLINE# #INDENT# for r in opts . reduce : #NEWLINE# #INDENT# if ( r not in reducers ) : #NEWLINE# #INDENT# arg_error ( ( 'unknown reducer: "%r"' % r ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# tmp_wd = os . getcwd ( ) #NEWLINE# if os . path . isdir ( opts . template_or_directory ) : #NEWLINE# #INDENT# test_dir = os . path . abspath ( opts . template_or_directory ) #NEWLINE# tests = [ os . path . join ( test_dir , test ) for test in os . listdir ( opts . template_or_directory ) ] #NEWLINE# run_folder = ( '%s_%s_dir_replay' % ( time . strftime ( '%Y%m%d-%H%M%S' ) , opts . project_name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tests = [ opts . template_or_directory ] #NEWLINE# run_folder = ( '%s_%s_local' % ( time . strftime ( '%Y%m%d-%H%M%S' ) , opts . project_name ) ) #NEWLINE# #UNINDENT# os . mkdir ( run_folder ) #NEWLINE# for template_fn in tests : #NEWLINE# #INDENT# template_fn = os . path . abspath ( template_fn ) #NEWLINE# os . chdir ( run_folder ) #NEWLINE# main ( opts . project_name , proj_cls ( template_fn ) , run_folder , template_fn , opts . iterations , opts . min_aggr , opts . max_aggr , opts . keep_mutations , opts . timeout , opts . pickle_result , opts . reduce , opts . reducen ) #NEWLINE# os . chdir ( tmp_wd )