Merge "Print the coverage report location at the end of acov-llvm.py report." am: 1f1a79d97d am: bbddce09cb am: ebf263b9f5

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

Change-Id: I7f0b7d6183abd4934a462cfbe05fc1119da02206
This commit is contained in:
Roland Levillain
2021-05-21 20:19:28 +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()