summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-06-14 21:02:12 -0400
committerDan Halbert <halbert@halwitz.org>2018-06-14 21:02:12 -0400
commitfa814a32ce3a211bcec9b06ad488aa1dde1b669d (patch)
tree4fb938bfdff579e222c968faf0f6f84a95fedec6 /tests
parente724bc1c4eb1224aa043a1489b29ec3daaa832aa (diff)
Make Trinket M0 build fit; make RAMFS in vfs_fat_* tests be compliant with expected API
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/vfs_fat_fileio1.py2
-rw-r--r--tests/extmod/vfs_fat_fileio2.py2
-rw-r--r--tests/extmod/vfs_fat_more.py2
-rw-r--r--tests/extmod/vfs_fat_oldproto.py2
-rw-r--r--tests/extmod/vfs_fat_ramdisk.py2
5 files changed, 10 insertions, 0 deletions
diff --git a/tests/extmod/vfs_fat_fileio1.py b/tests/extmod/vfs_fat_fileio1.py
index 8b9ff92eb..e3afbe872 100644
--- a/tests/extmod/vfs_fat_fileio1.py
+++ b/tests/extmod/vfs_fat_fileio1.py
@@ -27,11 +27,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))
diff --git a/tests/extmod/vfs_fat_fileio2.py b/tests/extmod/vfs_fat_fileio2.py
index b5adb75c9..dc109266a 100644
--- a/tests/extmod/vfs_fat_fileio2.py
+++ b/tests/extmod/vfs_fat_fileio2.py
@@ -27,11 +27,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))
diff --git a/tests/extmod/vfs_fat_more.py b/tests/extmod/vfs_fat_more.py
index baec96787..1d9b1c3dd 100644
--- a/tests/extmod/vfs_fat_more.py
+++ b/tests/extmod/vfs_fat_more.py
@@ -27,11 +27,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))
diff --git a/tests/extmod/vfs_fat_oldproto.py b/tests/extmod/vfs_fat_oldproto.py
index ef4f1da78..8aa59a98e 100644
--- a/tests/extmod/vfs_fat_oldproto.py
+++ b/tests/extmod/vfs_fat_oldproto.py
@@ -25,11 +25,13 @@ class RAMFS_OLD:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def sync(self):
pass
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py
index 896641ab3..8af83e17b 100644
--- a/tests/extmod/vfs_fat_ramdisk.py
+++ b/tests/extmod/vfs_fat_ramdisk.py
@@ -26,11 +26,13 @@ class RAMFS:
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
for i in range(len(buf)):
buf[i] = self.data[n * self.SEC_SIZE + i]
+ return 0
def writeblocks(self, n, buf):
#print("writeblocks(%s, %x)" % (n, id(buf)))
for i in range(len(buf)):
self.data[n * self.SEC_SIZE + i] = buf[i]
+ return 0
def ioctl(self, op, arg):
#print("ioctl(%d, %r)" % (op, arg))