Merge lp:~roadmr/checkbox/setup_and_suites_tests into lp:checkbox
Status: | Merged |
---|---|
Merged at revision: | 1694 |
Proposed branch: | lp:~roadmr/checkbox/setup_and_suites_tests |
Merge into: | lp:checkbox |
Diff against target: |
133 lines (+77/-1) 5 files modified
checkbox/tests/setup_files.py (+63/-0) debian/changelog (+5/-1) jobs/local.txt.in (+7/-0) po/POTFILES.in (+1/-0) setup.cfg (+1/-0) |
To merge this branch: | bzr merge lp:~roadmr/checkbox/setup_and_suites_tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brendan Donegan (community) | Approve | ||
Daniel Manrique (community) | Needs Resubmitting | ||
Review via email: mp+125357@code.launchpad.net |
Description of the change
I added some tests that validate:
- All job files in jobs/ are also declared in setup.cfg (so they are included when building a package) and po/POTFILES.in (so they are considered when generating translations).
- All job files are listed in jobs/local.txt.in (so no job files are "left behind" and end up suiteless and lonely).
I get the feeling the tests are a bit brittle because they have a few hardcoded paths and make a few assumptions about which files should and should not be verified (the local.txt test arbitrarily removes a couple of files), so if you can think of a way to improve this it would be welcome. The hardcoded paths are not so much of a problem for checkbox, as this is mainly meant to be run at build time, but may be a problem for e.g. checkbox-oem.
Should this have [FEATURE] as it's not a bug? Also I see an unused import of 'os' in the test source file which you may want to remove.