stop passing openQA client instance around all over the place
ClosedPublic

Authored by adamwill on Sep 3 2015, 9:21 PM.

Details

Summary

I noticed that after all the recent change shook out, we're
passing an OpenQA_Client instance all over the place which is
actually *used* exactly twice, once in run_openqa_jobs() and
once in get_passed_testcases(). Instantiating an OpenQA_Client
is pretty much free anyway, so instead of all this pass-the-
parcel crap, let's just have those two places instantiate it
when they need it.

I guess in theory we might want to allow for passing in a
differently-configured OpenQA_Client, but eh, it doesn't seem
really compelling, and you can always just change the client
config file. If we really want to allow for it we can just
have those two function accept an optional 'client' argument
and instantiate if it's not provided.

Test Plan

Check everything still works exactly the same.

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to stop passing openQA client instance around all over the place.Sep 3 2015, 9:21 PM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: garretraziel, jskladan.
This revision is now accepted and ready to land.Sep 4 2015, 1:38 PM
This revision was automatically updated to reflect the committed changes.