sbuild task: add pre-upload consistency checks on sbuild results (#94)
Consistency of files generated by sbuild with the files mentioned in .changes
- In the unit tests: replace
write_changes_file(changes_file)bywrite_changes_file(changes_file, [file1, file2, fileN...]). The written changes file has the correct file names, sizes and hashes for the given files (needed so existing tests keep working) after adding validation checks - Add
ValidationFailedLoglocal artifact to send the log -
Sbuildclass: new method_check_build_consistencythat return a list with the errors (or empty list if no errors founds). Currently it checks that the files in the .changes exist and have the correct hash; and also checks that no extra-files were generated that are not part of the .changes
Edited by Carles Pina i Estany