[pw-ci] [PATCH] post_pw.sh: Convert spaces to _

Aaron Conole aconole at redhat.com
Sat Aug 7 14:44:22 UTC 2021


As with the previous commit, patchwork doesn't support
spaces in the context.

Signed-off-by: Aaron Conole <aconole at redhat.com>
---
NOTE: This has already been applied, since it was needed to re-enable reports.
      Any fixes / enhancements are welcome.  Sorry about it.

post_pw.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/post_pw.sh b/post_pw.sh
index 4a10ab6..219c470 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')"
+    context="$(echo "$report" | sed -n 's/.*Test-Label: //p' | 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



More information about the Pwci mailing list