summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2017-02-20 15:44:30 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-03-14 09:45:55 +0100
commit04a5ec9b4f0f5c9fc63310cc4301ed7587accab8 (patch)
tree880e849316f34be6780eeec41d29ec981c950576
parent3d276339564ce1bbcdb2dbd678b6b0bf95cc3131 (diff)
downloaddpdk-ci-04a5ec9b4f0f5c9fc63310cc4301ed7587accab8.zip
dpdk-ci-04a5ec9b4f0f5c9fc63310cc4301ed7587accab8.tar.gz
dpdk-ci-04a5ec9b4f0f5c9fc63310cc4301ed7587accab8.tar.xz
tools: slugify report label
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>
-rwxr-xr-xtools/send-patch-report.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/send-patch-report.sh b/tools/send-patch-report.sh
index 7f78316..74f17b0 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 ;;