예제 #1
0
파일: pabot.py 프로젝트: vipidp/pabot
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
예제 #2
0
파일: pabot.py 프로젝트: hirsivaja/pabot
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()))
예제 #3
0
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
예제 #4
0
파일: pabot.py 프로젝트: anyeguyue/pabot
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()))
예제 #5
0
파일: pabot.py 프로젝트: practo/pabot
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
예제 #6
0
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