Searched refs:bat_state (Results 1 – 3 of 3) sorted by relevance
40 bat_state = self.get_bat_status(host)41 self.test_charge_state(ac_state, bat_state)44 bat_state = self.get_bat_status(host)45 self.test_discharge_state(ac_state, bat_state)49 def test_charge_state(self, ac_state, bat_state): argument57 if not (ac_state == "yes" and (bat_state == "Charging"58 or bat_state == "Fully charged")):60 % bat_state)63 def test_discharge_state(self, ac_state, bat_state): argument71 if not (ac_state == "no" and bat_state == "Discharging"):[all …]
97 bat_state = self.get_bat_status(host)98 if not (bat_state == 'Charging' or bat_state == 'Fully charged'):99 raise error.TestFail('Not Charging. BAT state is %s.' % bat_state)104 bat_state = self.get_bat_status(host)105 if not bat_state == 'Discharging':107 'Not Discharging. BAT state is %s.' % bat_state)
93 bat_state = _CHARGING if powered_on else _DISCHARGING,94 logging.info('Switching status to %s ', bat_state)115 raise error.TestFail('Bad %s state!' % bat_state)