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

Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/14717627

Change-Id: I73f54853cc43d93efd8a688aa4e7800dc7fe52a2
This commit is contained in:
Roland Levillain
2021-05-28 17:40:57 +00:00
committed by Automerger Merge Worker

View File

@@ -183,12 +183,16 @@ def do_report(args):
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]
output_dir = f'{temp_dir}/html'
check_output([
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'
] + object_flags + source_dirs)
print(f'Coverage report data written in {output_dir}')
def parse_args():
parser = argparse.ArgumentParser()