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

pull/1849/head
Paul Sokolovsky 2016-02-15 17:27:57 +02:00
rodzic 6cee869feb
commit dfc35afba1
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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