def _merge_one_run(outs_dir, options, tests_root_name, outputfile='output.xml'): output_path = os.path.abspath(os.path.join( options.get('outputdir', '.'), options.get('output', outputfile))) merge(sorted(glob(os.path.join(outs_dir, '**/*.xml'))), options, tests_root_name).save(output_path) return output_path
def _report_results(outs_dir, options, start_time_string, tests_root_name): output_path = os.path.abspath(os.path.join(options.get('outputdir', '.'), options.get('output', 'output.xml'))) merge(sorted(glob(os.path.join(outs_dir, '**/*.xml'))), options, tests_root_name).save(output_path) _copy_screenshots(options) print 'Output: %s' % output_path options['output'] = None # Do not write output again with rebot return rebot(output_path, **_options_for_rebot(options, start_time_string, _now()))
def _merge_one_run(outs_dir, options, tests_root_name, outputfile='output.xml'): output_path = os.path.abspath(os.path.join( options.get('outputdir', '.'), options.get('output', outputfile))) files = sorted(glob(os.path.join(_glob_escape(outs_dir), '**/*.xml'))) if not files: _write('WARN: No output files in "%s"' % outs_dir, Color.YELLOW) return "" merge(files, options, tests_root_name).save(output_path) return output_path
def _merge_one_run(outs_dir, options, tests_root_name, outputfile='output.xml'): output_path = os.path.abspath( os.path.join(options.get('outputdir', '.'), options.get('output', outputfile))) files = sorted(glob(os.path.join(_glob_escape(outs_dir), '**/*.xml'))) if not files: _write('WARN: No output files in "%s"' % outs_dir, Color.YELLOW) return "" merge(files, options, tests_root_name).save(output_path) return output_path