Home | History | Annotate | Download | only in bootloader

Lines Matching full:bootctl

15 import bootctl
25 self.bootctl = bootctl.Bootctl(self.device)
32 num_slots = self.bootctl.get_number_slots()
35 suffix = self.bootctl.get_suffix(slot)
49 slot = self.bootctl.get_current_slot()
50 self.assertTrue(self.bootctl.set_active_boot_slot(slot))
51 self.assertFalse(self.bootctl.is_slot_marked_successful(slot))
52 self.assertTrue(self.bootctl.mark_boot_successful())
53 self.assertTrue(self.bootctl.is_slot_marked_successful(slot))
58 self.assertTrue(self.bootctl.is_slot_marked_successful(slot))
67 num_slots = self.bootctl.get_number_slots()
71 slot = self.bootctl.get_current_slot()
73 self.assertTrue(self.bootctl.set_active_boot_slot(new_slot))
74 slot2 = self.bootctl.get_current_slot()
80 self.assertEqual(new_slot, self.bootctl.get_current_slot())
89 num_slots = self.bootctl.get_number_slots()
93 slot = self.bootctl.get_current_slot()
97 self.assertTrue(self.bootctl.set_active_boot_slot(new_slot))
98 self.assertTrue(self.bootctl.is_slot_bootable(new_slot))
99 self.assertTrue(self.bootctl.set_slot_as_unbootable_slot(new_slot))
100 self.assertFalse(self.bootctl.is_slot_bootable(new_slot))
105 self.assertEqual(slot, self.bootctl.get_current_slot())
106 self.assertFalse(self.bootctl.is_slot_bootable(new_slot))
107 self.assertTrue(self.bootctl.set_active_boot_slot(new_slot))
108 self.assertTrue(self.bootctl.is_slot_bootable(new_slot))
113 self.assertEqual(new_slot, self.bootctl.get_current_slot());