DPDK CI discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: ci@dpdk.org
Subject: [dpdk-ci] [PATCH] tools: slugify report label
Date: Mon, 20 Feb 2017 15:48:09 +0100	[thread overview]
Message-ID: <1487602089-18946-1-git-send-email-thomas.monjalon@6wind.com> (raw)

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

             reply	other threads:[~2017-02-20 14:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20 14:48 Thomas Monjalon [this message]
2017-03-14  8:46 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487602089-18946-1-git-send-email-thomas.monjalon@6wind.com \
    --to=thomas.monjalon@6wind.com \
    --cc=ci@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).