From dfb7232f28b0378051c4159adba2057b3ec73cac Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Tue, 16 Nov 2021 01:57:02 -0600 Subject: [PATCH] Added @tcooper's suggestion --- build-report.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-report.sh b/build-report.sh index f75c4147..8edc978a 100755 --- a/build-report.sh +++ b/build-report.sh @@ -3,10 +3,11 @@ set -e BUILD_NAME=$1 -printf '# %s\n' "$BUILD_NAME" +printf '# Build%s\n' "$BUILD_NAME" printf "| Test | Result | Failure Reason | Effort to Fix | Notes |\n" printf "| ---- | ------ | -------------- | ------------ | ----- |\n" openqa-cli api -X GET jobs build="$BUILD_NAME" | \ jq -r '.jobs[] | {name,result} | join(" | ") | split("-") | last' | \ - sort + sort | \ + sed 's,^,| ,g;s,$, | | | |,g'