Bug 9876

Summary: patchtest-oe: check that attached SW patches does not contain trailing spaces
Product: [Yocto Project Subprojects] Patchwork/Patchtest Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: PatchtestAssignee: Jose Perez C <jose.perez.carranza>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: bluelightning, 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:47:47 UTC
trailing spaces should not be present on sw patches, so do a check on these patches and fail if any of them has one or more.
Comment 1 Paul Eggleton 2016-07-06 02:15:19 UTC
I feel this goes a bit too far. The benefit of validating this is going to be negligible.
Comment 2 Leonardo Sandoval Gonzalez 2016-07-06 13:49:37 UTC
(In reply to comment #1)
> I feel this goes a bit too far. The benefit of validating this is going to
> be negligible.

I understand your point; but why should git track blanks? The check is already implemented but for the moment is the todo folder. We may remove it later.
Comment 3 Paul Eggleton 2016-07-06 20:03:48 UTC
The point is if we're going to be rejecting people's patches we should be doing so for good reasons. I just don't think this one qualifies.
Comment 4 Leonardo Sandoval Gonzalez 2016-07-06 20:32:52 UTC
(In reply to comment #3)
> The point is if we're going to be rejecting people's patches we should be
> doing so for good reasons. I just don't think this one qualifies.

I am following the first recommendation of this link:

https://www.python.org/dev/peps/pep-0008/#other-recommendations

As I said, right now the test does not hurt anyone, it is on the 'todo' checks. I can remove it anytime.
Comment 5 Jose Perez C 2016-07-11 13:44:53 UTC
Patch already sent to Leonardo Sandoval Gonzalez