From fa6fba02af3712a5d1f43867060650b1ace2147a Mon Sep 17 00:00:00 2001 From: Jianxiong Pan Date: Wed, 10 Oct 2018 14:40:28 +0800 Subject: [PATCH] script: allow JIRA BugId check in the merge_pre_check.pl script PD#174488: add JIRA BugId check in the merge_pre_check.pl script Change-Id: I32f2fc123041e6c40ce2a5c4208734e11b307fd5 Signed-off-by: Jianxiong Pan --- scripts/amlogic/merge_pre_check.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/amlogic/merge_pre_check.pl b/scripts/amlogic/merge_pre_check.pl index 238aac0..e04be96 100755 --- a/scripts/amlogic/merge_pre_check.pl +++ b/scripts/amlogic/merge_pre_check.pl @@ -118,11 +118,12 @@ sub check_msg_49 if( $lnum == 7 ) { - if( $line !~ /^(\s){4}PD\#(\d)+/ ) + if( $line !~ /^(\s){4}PD\#(\d)+/ && + $line !~ /^(\s){4}PD\#SWPL-(\d)+/ ) { $err_cnt += 1; $line =~ s/^(\s){4}//; - $err_msg .= " $err_cnt: , but <$line>\n"; + $err_msg .= " $err_cnt: , but <$line>\n"; } } } @@ -134,11 +135,12 @@ sub check_msg_314 if( $lnum == 5 ) { - if ($line !~ /^(\s){4}PD\#(\d)+:\s([\w]+:\s){1,2}[\w]+.*[\S]+$/) + if ($line !~ /^(\s){4}PD\#(\d)+:\s([\w]+:\s){1,2}[\w]+.*[\S]+$/ + && $line !~ /^(\s){4}PD\#SWPL-(\d)+:\s([\w]+:\s){1,2}[\w]+.*[\S]+$/) { $err_cnt += 1; $line =~ s/^(\s){4}//; - $err_msg .= " $err_cnt: , but <$line>\n"; + $err_msg .= " $err_cnt: , but <$line>\n"; } elsif ( $line =~ /(kernel)/i) { -- 2.7.4