Rely on `git ls-files` and `git diff` for checking mocks
What does this MR do?
This commit changes the check_mocks
behaviour so that it guarantees that the existing commit matches the regenerated mocks. It also compares against the branch HEAD, in case some mock file is missing.
Why was this MR needed?
Some improvements were done in the other projects when bringing them up to date, so this backports those improvements.
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased