From 0b90cf19c251519404725d9b4bb6f348f89ac201 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Sun, 19 Jan 2025 17:42:14 +1100 Subject: [PATCH] Trim the superfluous `coverage` sub-directory From `coverage/coverage` to just `coverage`. --- .github/workflows/build.yaml | 6 +++--- test/CMakeLists.txt | 2 +- test/removeHtmlDates.sh.in | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cb1a3611f..65cbff546 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -735,9 +735,9 @@ jobs: # Combine all tracefiles into one. Note, ignoring inconsistencies between Clang and GCC reports :| lcov --ignore-errors inconsistent $(find artifacts -name '*.info' -type f -printf '-a %p\n') -o coverage.info # Generate the HTML report. Note, ignoring inconsistencies between Clang and GCC reports :| - genhtml --ignore-errors inconsistent --no-sort --output-directory coverage/coverage coverage.info + genhtml --ignore-errors inconsistent --no-sort --output-directory coverage coverage.info # Can use any of the removeHtmlDates.sh scripts here, so the Ubuntu x86-64 GCC Qt6 job's version will do. - /usr/bin/env bash ./artifacts/test-results-*.x86-64.gcc.qt-6/coverage/removeHtmlDates.sh + /usr/bin/env bash ./artifacts/test-results-*.x86-64.gcc.qt-6/coverage/removeHtmlDates.sh coverage # Remove build numbers from pre-releases, and remove extra build info (such as ".linux.x86-64.gcc.qt-6") # from all releases, since this coverage report is an aggregation of many build hosts. sed -i -Ee 's/(headerValue">([0-9]+\.){2}[0-9]+)(((-pre)\+[0-9]+)|(\+[0-9]+))\..*Test:.*:/>Project:/;n;s/>.*${PROJECT_NAME}(Test )?Date:.*:/>Version:/;n;s/>.*${PROJECT_VERSION}${PROJECT_VERSION_SUFFIX}