From: Jianxiong Pan Date: Wed, 10 Oct 2018 06:40:28 +0000 (+0800) Subject: script: allow JIRA BugId check in the merge_pre_check.pl script X-Git-Tag: khadas-vims-v0.9.6-release~1295 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa6fba02af3712a5d1f43867060650b1ace2147a;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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) {