tests: add SD card format feature tests

This commit is contained in:
matejcik
2020-02-17 17:35:46 +01:00
parent ddee77ecb6
commit 5523c7bbef
3 changed files with 55 additions and 4 deletions

View File

@@ -160,6 +160,10 @@ class DebugLink:
def flash_erase(self, sector):
self._call(proto.DebugLinkFlashErase(sector=sector), nowait=True)
@expect(proto.Success)
def erase_sd_card(self, format=True):
return self._call(proto.DebugLinkEraseSdCard(format=format))
class NullDebugLink(DebugLink):
def __init__(self):