Merge branch 'cboltz-parse-remainder' into 'master'

parse_profile_data(): Ensure last line in a profile is valid

'lastline' gets merged into 'line' (and reset to None) when reading the
next line. If 'lastline' isn't empty after reading the whole profile,
this means there's something unparseable at the end of the profile,
therefore parse_profile_data() should error out.

Also remove some simple_tests testcases from the 'exception_not_raised'
list - they only didn't raise the exception because the invalid rule was
the last line in the affected profile.

Thanks to Eric Chiang for accidently (and maybe even unnoticedly ;-)
discovering this bug while adding some xattr testcases that surprisingly
didn't fail in the tools.

PR: !271
Acked-by: John Johansen <john.johansen@canonical.com>
2 jobs from master in 10 minutes and 10 seconds
Status Job ID Name Coverage
  Build
passed #120098632
build-all

00:02:41

 
  Test
passed #120098633
test-all

00:07:28