summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2021-05-28 17:17:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-28 17:17:03 +0000
commita4b29447993293da2c15d641cc349f00416451b1 (patch)
treea2e0961b76cac790791b26c0263b396a857f242a
parent8fb8023bfccdaf5ab3ef3ce1526472b108262cbd (diff)
parented60ff1c7fb2bbc7890991e5e59e9fe785cad3cb (diff)
downloaddevelopment-a4b29447993293da2c15d641cc349f00416451b1.tar.gz
Merge "Print the coverage report location at the end of `acov-llvm.py report`." into sc-dev
-rwxr-xr-xscripts/acov-llvm.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/acov-llvm.py b/scripts/acov-llvm.py
index a5b34c0d4..063911f1a 100755
--- a/scripts/acov-llvm.py
+++ b/scripts/acov-llvm.py
@@ -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()