Home | History | Annotate | Download | only in debugd_DevTools

Lines Matching refs:tool

46         for tool in self.tools:
47 tool.initialize(host, save_initial_state=True)
60 for tool in self.tools:
62 tool.restore_state()
65 'altered by test (%s).', tool, e)
69 def test_tool(self, tool):
71 Tests an individual tool.
78 @param tool: Tool object to test.
80 @throw debugd_dev_tools.AccessError: Dev tool access failed.
81 @throw error.TestFail: A tool failed to affect device state.
83 # Start by disabling the tool. If disable fails we may still be
84 # able to test enabling the tool.
85 logging.debug('Disabling %s.', tool)
87 tool.disable()
89 # If the tool can't be disabled and is already enabled there's no
91 if tool.is_enabled():
92 logging.warning('Skipping %s - cannot disable (%s).', tool, e)
94 if tool.is_enabled():
95 raise error.TestFail('%s did not disable correctly.' % tool)
97 # Now enable the tool and make sure it worked.
98 logging.debug('Enabling %s.', tool)
100 tool.enable()
102 logging.warning('Skipping %s - cannot enable (%s).', tool, e)
104 if not tool.is_enabled():
105 raise error.TestFail('%s did not enable correctly.' % tool)
108 logging.debug('Disabling %s.', tool)
110 tool.disable()
113 if tool.is_enabled():
114 raise error.TestFail('%s did not disable correctly.' % tool)
125 for tool in self.tools:
126 self.test_tool(tool)