Skip to content

Commit e827a27

Browse files
driver/fastbootdriver: add erase method
"fastboot erase" erases a flash partition, so add a corresponding method for it. Signed-off-by: Bastian Krause <[email protected]>
1 parent 080502d commit e827a27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

labgrid/driver/fastbootdriver.py

+5
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ def flash_all(self):
109109
for partition in self.flash_images.keys():
110110
self.flash(partition)
111111

112+
@Driver.check_active
113+
@step(args=['partition'])
114+
def erase(self, partition):
115+
self('erase', partition)
116+
112117
@Driver.check_active
113118
@step(args=['cmd'])
114119
def run(self, cmd):

0 commit comments

Comments
 (0)