Merge lp:~roadmr/checkbox/1187216-check-job-format into lp:checkbox
Proposed by
Daniel Manrique
Status: | Merged |
---|---|
Approved by: | Brendan Donegan |
Approved revision: | 2164 |
Merged at revision: | 2189 |
Proposed branch: | lp:~roadmr/checkbox/1187216-check-job-format |
Merge into: | lp:checkbox |
Diff against target: |
85 lines (+32/-6) 3 files modified
checkbox-old/checkbox/tests/test_message_files.py (+29/-3) checkbox-old/debian/changelog (+2/-0) checkbox-old/jobs/fingerprint.txt.in (+1/-3) |
To merge this branch: | bzr merge lp:~roadmr/checkbox/1187216-check-job-format |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeff Lane | Approve | ||
Daniel Manrique (community) | Needs Resubmitting | ||
Review via email: mp+167341@code.launchpad.net |
Commit message
Added a test that validates that manual (user-verify and user-interact included) jobs contain the verification field in their description, without which the Qt UI tends to skip tests.
Description of the change
Added a test that validates that manual (user-verify and user-interact included) jobs contain the verification field in their description, without which the Qt UI tends to skip tests.
The test can be trivially modified to check for any other fields in the description.
With this test, builds will fail if any job is malformed, so at least we won't build bad stuff.
To post a comment you must log in.
Just to be pedantic:
This job description: stuff.exe. bat.com
plugin: user-interact
name: mediacard/mmc-foo
command: do_some_
_description:
PURPOSE:
to flob the brats
VERIFICATION:
blab:
Results in this failure: manual_ jobs_have_ required_ fields (tests. test_message_ files.MessageFi leFormatTest) ------- ------- ------- ------- ------- ------- ------- ------- ------- bladernr/ development/ daniel- job-desc- test/checkbox- old/checkbox/ tests/test_ message_ files.py" , line 122, in test_verify_ manual_ jobs_have_ required_ fields format( message[ 'name'] ))
FAIL: test_verify_
-------
Traceback (most recent call last):
File "/home/
msg.
AssertionError: False is not true : Missing verification in mediacard/mmc-foo
I am actually missing the "STEPS" part, not VERIFICATION.
This description returns the same error: stuff.exe. bat.com
plugin: user-interact
name: mediacard/mmc-foo
command: do_some_
_description:
PURPOSE:
to flob the brats
STEPS:
1: Steal Underpands!
2: ??
3: PROFIT!
only it IS missing the VERIFICATION part...
any chance to get it to say WHAT is missing?