Merge "Print the coverage report location at the end of acov-llvm.py report." into sc-dev

This commit is contained in:
Roland Levillain
2021-05-28 17:17:03 +00:00
committed by Android (Google) Code Review

View File

@@ -183,12 +183,16 @@ def do_report(args):
object_flags = [args.binary[0]] + ['--object=' + b for b in args.binary[1:]] object_flags = [args.binary[0]] + ['--object=' + b for b in args.binary[1:]]
source_dirs = ['/proc/self/cwd/' + s for s in args.source_dir] source_dirs = ['/proc/self/cwd/' + s for s in args.source_dir]
output_dir = f'{temp_dir}/html'
check_output([ check_output([
str(LLVM_COV_PATH), 'show', f'--instr-profile={profdata}', str(LLVM_COV_PATH), 'show', f'--instr-profile={profdata}',
'--format=html', f'--output-dir={temp_dir}/html', '--format=html', f'--output-dir={output_dir}',
'--show-region-summary=false' '--show-region-summary=false'
] + object_flags + source_dirs) ] + object_flags + source_dirs)
print(f'Coverage report data written in {output_dir}')
def parse_args(): def parse_args():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()