diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-27 23:15:09 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-27 23:22:15 +1100 |
commit | a0c729681faa3a0b1a6150d5462647bad60038bf (patch) | |
tree | d55498ad3db78a685b18a7941dbe5a73b0a50755 | |
parent | bfa948c0a50c8f543c9b0751eb42cffac09656ec (diff) | |
download | micropython-a0c729681faa3a0b1a6150d5462647bad60038bf.tar.gz micropython-a0c729681faa3a0b1a6150d5462647bad60038bf.zip |
tests/extmod/vfs_fat_ramdisk: Make it work on pyboard.
-rw-r--r-- | tests/extmod/vfs_fat_ramdisk.py | 2 | ||||
-rw-r--r-- | tests/extmod/vfs_fat_ramdisk.py.exp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py index a9eb1679a7..dc4a1c3055 100644 --- a/tests/extmod/vfs_fat_ramdisk.py +++ b/tests/extmod/vfs_fat_ramdisk.py @@ -63,7 +63,7 @@ with vfs.open("foo_file.txt", "w") as f: print(vfs.listdir()) print("stat root:", vfs.stat("/")) -print("stat file:", vfs.stat("foo_file.txt")) +print("stat file:", vfs.stat("foo_file.txt")[:-3]) # timestamps differ across runs print(b"FOO_FILETXT" in bdev.data) print(b"hello!" in bdev.data) diff --git a/tests/extmod/vfs_fat_ramdisk.py.exp b/tests/extmod/vfs_fat_ramdisk.py.exp index fda7d300e0..137db58419 100644 --- a/tests/extmod/vfs_fat_ramdisk.py.exp +++ b/tests/extmod/vfs_fat_ramdisk.py.exp @@ -5,7 +5,7 @@ getcwd: / True ['foo_file.txt'] stat root: (16384, 0, 0, 0, 0, 0, 0, 0, 0, 0) -stat file: (32768, 0, 0, 0, 0, 0, 6, -631238400, -631238400, -631238400) +stat file: (32768, 0, 0, 0, 0, 0, 6) True True getcwd: /foo_dir |