Added @tcooper's suggestion

This commit is contained in:
Al Bowles 2021-11-16 01:57:02 -06:00
parent fb73544878
commit dfb7232f28

View File

@ -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'