Move ManageServices from power_utils.py to upstart.py
This class as written has very little power management specific code and can be
useful to non-power tests, especially for things like graphics tests. Currently
there is one graphics test, graphics_SyncControlTest, that already uses this
code and I am intending on refactoring other tests to use it. Specifically I
want to use it to disable/enable the ui (Chrome & X11) service in a uniform way
instead of having each test implement this itself.
BUG=chromium-os:38438
TEST=Run try jobs on ARM and x86 to confirm all of the affected tests pass.
Change-Id: Icc0a7d581730e9dfed910ddad78b8bff1432d8e8
Reviewed-on: https://gerrit.chromium.org/gerrit/42403
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Tested-by: Ryan Harrison <rharrison@chromium.org>
8 files changed