Bug 9870

Summary: patchtest-oe: check bugzilla entry in patches is correctly formatted
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: PatchtestAssignee: Aníbal Limón <anibal.limon>
Status: RESOLVED FIXED QA Contact: David Rodriguez <david.israelx.rodriguez.castellanos>
Severity: minor    
Priority: Medium+ CC: richard.purdie
Version: 2.1   
Target Milestone: 2.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Leonardo Sandoval Gonzalez 2016-07-04 16:19:27 UTC
implement a unit test that checks the patch line that indicates the bugzilla entry 

[YOCTO #XXXX]
Comment 1 Aníbal Limón 2016-07-11 16:59:37 UTC
Patch was integrated with checks of,

regex for detect: "\[.*[Y|y][O|o][C|c][T|t][O|o].*\]"
regex for valdiate: "^\[YOCTO #(\d+)\]$"