Ok the whole set once more:
1) Fixed the trailing spaces on patch 15 - they showed as warning when I
applied the patch in a different repo
2) The problem with permissions that Jan have seen was caused by the
fact that when the repo is created as root the permissions on the files
that are used in tests are different. For now I added a different check.
In future there might be a need for some improvement in this area. I
created a task https://fedorahosted.org/sssd/ticket/1284
to track this
3) Added two missing cleanup calls to patch 27 as Jan rightly indicated
that they were missing
All the rest is the same.
I'm not completely comfortable with your solution of the access check. You are
just assuming in the comment that the file was created by root and has
therefore different permissions. But what if it wasn't created by root and
still has these different permissions? I think the test could then let an error
in the code pass through. Please check that the file indeed belongs to root
just to be sure. Also error2 is not necessary IMO, you can re-user error.
This is the last minor change I'm asking for. If you want, I'll do it for you.
Other than that all patches are fine.