#200: Multiple control files / multiple test wrappers
--------------------+-------------------------------------------------------
Reporter: wwoods | Owner:
Type: task | Status: new
Priority: major | Milestone: Multi-hook tests
Component: tests | Version: 1.0
Keywords: |
--------------------+-------------------------------------------------------
For a test to run under multiple hooks, it may need multiple control
files, since we may want to do slightly different things to prepare for
each test. We could have multiple test wrappers and conditionalize the
job.run_test() argument based on the calling hook, for example:
if hook == 'post-koji-build':
job.run_test('mytest_koji', name=name, envrs=envrs, ...)
elif hook == 'post-bodhi-update':
job.run_test('mytest_bodhi', name=name, envrs=envrs, ...)
Alternately, we could have multiple control.HOOKNAME files - one for each
hook the test can be run under. This would also allow us to eliminate the
use of the 'testlist' file to determine the tests that are eligible for
use in each hook - each test would be able to declare how to run itself
under each hook.
This ticket requires deciding on a method for handling multi-hook tests,
documenting that method, and (perhaps) converting existing tests.
--
Ticket URL: <
https://fedorahosted.org/autoqa/ticket/200>
AutoQA <
http://autoqa.fedorahosted.org>
Automated QA project