From dd37730672800382c97edc109a59c15d368480e6 Mon Sep 17 00:00:00 2001 From: Nicolas Benech Date: Mon, 6 Jan 2020 23:03:36 -0500 Subject: [PATCH] gpu: nvgpu: unit: update gcov.sh to patch paths To keep consistency between host and target runs, this patch adds some post processing to HTML files to include a path from the TOP folder to GCOV reports. JIRA NVGPU-3510 Change-Id: I50ea5614fa665d257384a23acbf7b4e5b9d69925 Signed-off-by: Nicolas Benech Reviewed-on: https://git-master.nvidia.com/r/2274714 GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/gcov.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/userspace/gcov.sh b/userspace/gcov.sh index 4a87ccbad..9b07cd472 100755 --- a/userspace/gcov.sh +++ b/userspace/gcov.sh @@ -77,6 +77,9 @@ echo "Generating GCOV report..." python -m gcovr -v -s -e '.+posix/.+' -e '.*userspace/.+' \ -r $NVGPU_SRC_ROOT --html-details --output report/index.html &> gcov.log +#Patch the paths to match output from automative runs so that hashes are identical +sed -i 's/Value\">drivers\//Value\">kernel\/nvgpu\/drivers\//g' report/*.c.html + #Present the results if [ "$(uname -m)" = "aarch64" ]; then echo "Running on target, starting a webserver..."