DPDK CI discussions
 help / color / 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, back to index

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

DPDK CI discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/ci/0 ci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ci ci/ http://inbox.dpdk.org/ci \
		ci@dpdk.org
	public-inbox-index ci


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.ci


AGPL code for this site: git clone https://public-inbox.org/ public-inbox