DPDK CI discussions
 help / color / mirror / Atom feed
* [dpdk-ci] [PATCH] tools: slugify report label
@ 2017-02-20 14:48 Thomas Monjalon
  2017-03-14  8:46 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Monjalon @ 2017-02-20 14:48 UTC (permalink / raw)
  To: ci

The report label will be used in some URLs with patchwork 2.0.
That's why the spaces are automatically replaced by a dash.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 tools/send-patch-report.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/send-patch-report.sh b/tools/send-patch-report.sh
index 7f78316..c6113ad 100755
--- a/tools/send-patch-report.sh
+++ b/tools/send-patch-report.sh
@@ -43,7 +43,7 @@ print_usage () {
 	        -m msgid    id of the patch email
 	        -p pwid     id of the patch in patchwork (retrieved from msgid otherwise)
 	        -o listid   origin of the patch
-	        -l label    title of the test
+			-l label    title of the test (slug formatted)
 	        -s status   one of these test results: SUCCESS, WARNING, FAILURE
 	        -d desc     few words to better describe the status
 	        -h          this help
@@ -69,7 +69,7 @@ while getopts d:f:hl:m:o:p:s:t: arg ; do
 		m ) msgid=$OPTARG ;;
 		p ) pwid=$OPTARG ;;
 		o ) listid=$OPTARG ;;
-		l ) label=$OPTARG ;;
+		l ) label=$(echo $OPTARG | sed 's,[[:space:]]\+,-,g') ;;
 		s ) status=$OPTARG ;;
 		d ) desc=$OPTARG ;;
 		h ) print_usage ; exit 0 ;;
-- 
2.7.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-ci] [PATCH] tools: slugify report label
  2017-02-20 14:48 [dpdk-ci] [PATCH] tools: slugify report label Thomas Monjalon
@ 2017-03-14  8:46 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-03-14  8:46 UTC (permalink / raw)
  To: ci

2017-02-20 15:48, Thomas Monjalon:
> The report label will be used in some URLs with patchwork 2.0.
> That's why the spaces are automatically replaced by a dash.
> 
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-14  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-20 14:48 [dpdk-ci] [PATCH] tools: slugify report label Thomas Monjalon
2017-03-14  8:46 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).