[pw-ci] [PATCH] Revert "ci_mon: Convert spaces to _"

Michael Santana msantana at redhat.com
Wed Aug 11 13:11:20 UTC 2021


On Wed, Aug 11, 2021 at 9:05 AM Aaron Conole <aconole at redhat.com> wrote:
>
> This reverts commit ad29e6fcc30481cbde2806dcb78e41a514126f1f.
>
> This creates issues when inserting logs.  We need to use the
> correct full name of the test when getting log data.
>
> Signed-off-by: Aaron Conole <aconole at redhat.com>w
Acked-By Michael Santana <msantana at redhat.com>
> ---
>  ci_mon     | 3 +--
>  post_pw.sh | 2 +-
>  2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/ci_mon b/ci_mon
> index 40b6432..e2cdaf2 100755
> --- a/ci_mon
> +++ b/ci_mon
> @@ -201,8 +201,7 @@ for I in travis github dummy; do
>          echo "" >> report.eml
>
>          if [ "$test_name" != "" ]; then
> -            test_name=$(echo "${test_name}" | tr ' ' '_')
> -            TEST_LABEL="${I}-robot-${test_name}"
> +            TEST_LABEL="${I}-robot: ${test_name}"
>          else
>              TEST_LABEL="${I}-robot"
>          fi
> diff --git a/post_pw.sh b/post_pw.sh
> index 219c470..190cf6d 100755
> --- a/post_pw.sh
> +++ b/post_pw.sh
> @@ -59,7 +59,7 @@ send_post() {
>          return 0
>      fi
>
> -    context="$(echo "$report" | sed -n 's/.*Test-Label: //p' | tr ' ' '_')"
> +    context="$(echo "$report" | sed -n 's/.*Test-Label: //p' | tr ' ' '_' | tr ':' '/')"
>      state="$(echo "$report" | sed -n 's/.*Test-Status: //p')"
>      description="$(echo "$report" | sed -ne 's/^_\(.*\)_$/\1/p')"
>      patch_id="$(echo "$report" | sed -ne 's at .*href.*/patch[es]*/\(.*\)/\?".*@\1 at ip' | sed 's@/@@')"
> --
> 2.31.1
>
> _______________________________________________
> Pwci mailing list
> Pwci at lists.esnacc.org
> http://mail.esnacc.org/mailman/listinfo/pwci
>



More information about the Pwci mailing list