From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48])
 by dpdk.org (Postfix) with ESMTP id 5AC52FE5
 for <ci@dpdk.org>; Mon, 20 Feb 2017 15:48:12 +0100 (CET)
Received: by mail-wm0-f48.google.com with SMTP id r141so54485860wmg.1
 for <ci@dpdk.org>; Mon, 20 Feb 2017 06:48:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:subject:date:message-id;
 bh=nhpEL1iuCVjEc02jsjTzySCnX02UADMThnfx8zrsn34=;
 b=B/xq8JNUBt4UHrX87D0cRp3BtkNrsei2KvjlJwGoZyixA6sTjBg7IcxlLljdAwoVlW
 FN4uqmOluzTU5tQzZ+4idoDFgE0zKaQoX6i5Dys4GzTa/nMamHWUIY+7NP7wX6Mbng+n
 EcDJJB42187x0/vu38t+WJBc+nTQvuY+hT8QKB8r4FQFAHcKxFpdHtJBxMblG9Vsvm9Q
 8Mm3tTpkZPXk8VQ9CUBGvyUAqFeQ6Ih9QQ35aFV+G9n1ND6oYsM0gtnWwO3Xdn4eFDYH
 QxEt6FbMWrNRkj+fbHRPZ5r/8/nF5jRLFhRquJJfgPTDeqFgWVYxHHuB5c83udUpAB+w
 mpAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id;
 bh=nhpEL1iuCVjEc02jsjTzySCnX02UADMThnfx8zrsn34=;
 b=SdhWXg2NMEKO3FBvnlDZoazn9SKHlnzKJaCKmfOYCzL12itU+XXCVDnKOa3iFDKN6p
 AZVFFFMiEUeKLLc1+ti0+TlSb6RwpwcYL5OiPD1kozOL+ZynHQYZXj42NF0Y8TpYSzdi
 Ax3aa3Qh/u4gxMgJvek5zK/MsqZYux9NnZKHl50LgTYChzqt+IPgnK1sSansnJmAx1qY
 pBMjKzp0n9t3QHgSvXs9MrPnYwiJE4Mqu+MoD1fB/66ox2A6e33Fux3+e7PQO1mxG56F
 tfgaWm5fDCYoQEAZMf6Yr0Zhh419jzGUUkrYdkUZDCcPc2pxmekHdxyWNrspRJQ34lHH
 ed5w==
X-Gm-Message-State: AMke39mlB2bUtGzJh4q+ps980Xy7HH1aZGicYlFQFRswI7PSKsKSYzl1m8A/mwa4fmsg54zr
X-Received: by 10.28.158.74 with SMTP id h71mr11520327wme.59.1487602091720;
 Mon, 20 Feb 2017 06:48:11 -0800 (PST)
Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184])
 by smtp.gmail.com with ESMTPSA id y126sm13686192wmg.19.2017.02.20.06.48.10
 for <ci@dpdk.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Mon, 20 Feb 2017 06:48:11 -0800 (PST)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: ci@dpdk.org
Date: Mon, 20 Feb 2017 15:48:09 +0100
Message-Id: <1487602089-18946-1-git-send-email-thomas.monjalon@6wind.com>
X-Mailer: git-send-email 2.7.0
Subject: [dpdk-ci] [PATCH] tools: slugify report label
X-BeenThere: ci@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK CI discussions <ci.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/ci>,
 <mailto:ci-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/ci/>
List-Post: <mailto:ci@dpdk.org>
List-Help: <mailto:ci-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/ci>,
 <mailto:ci-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Feb 2017 14:48:12 -0000

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