tests/vfs_fat_ramdisk: Skip test if can't allocate ramdisk.

This commit is contained in:
Paul Sokolovsky 2016-02-15 17:27:57 +02:00
parent 6cee869feb
commit dfc35afba1
1 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,12 @@ class RAMFS:
return self.SEC_SIZE
bdev = RAMFS(48)
try:
bdev = RAMFS(48)
except MemoryError:
print("SKIP")
sys.exit()
uos.VfsFat.mkfs(bdev)
assert b"FOO_FILETXT" not in bdev.data