summaryrefslogtreecommitdiff
path: root/test/py/tests/test_fs/test_basic.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-04-21 11:07:22 -0600
committerTom Rini <trini@konsulko.com>2025-04-21 11:07:22 -0600
commit3e6bbc5adc20242a5056cfa142782debc0c368b5 (patch)
tree3c9cf41f69911d8d785f3d3892903b1e5fa4872f /test/py/tests/test_fs/test_basic.py
parentd36aa5057e6b19c5ff2075a02d12f1f13c39817b (diff)
parent6696f144279f9ee588463ad645e1f0c9b555ba84 (diff)
Merge patch series "fs: exfat: Flush node before put in read() callback"
This series from Marek Vasut <marex@denx.de> includes a number of fixes to the exFAT filesystem support that he recently added. Link: https://lore.kernel.org/r/20250413085740.5953-1-marex@denx.de
Diffstat (limited to 'test/py/tests/test_fs/test_basic.py')
-rw-r--r--test/py/tests/test_fs/test_basic.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/py/tests/test_fs/test_basic.py b/test/py/tests/test_fs/test_basic.py
index 64a3b50f52a..88b163ce305 100644
--- a/test/py/tests/test_fs/test_basic.py
+++ b/test/py/tests/test_fs/test_basic.py
@@ -35,6 +35,19 @@ class TestFsBasic(object):
'%sls host 0:0 invalid_d' % fs_cmd_prefix)
assert('' == output)
+ with ubman.log.section('Test Case 1c - test -e'):
+ # Test Case 1 - test -e
+ output = ubman.run_command_list([
+ 'host bind 0 %s' % fs_img,
+ 'test -e host 0:0 1MB.file && echo PASS'])
+ assert('PASS' in ''.join(output))
+
+ with ubman.log.section('Test Case 1d - test -e (invalid file)'):
+ # In addition, test with a nonexistent file to see if we crash.
+ output = ubman.run_command(
+ 'test -e host 0:0 2MB.file || echo PASS')
+ assert('PASS' in ''.join(output))
+
def test_fs2(self, ubman, fs_obj_basic):
"""
Test Case 2 - size command for a small file