[PATCH 8/9] test: env: allow optional date field in ls output assertion
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Mon May 18 07:57:27 CEST 2026
fs_ls_generic() now prints a date between the file size and filename
when the filesystem sets FS_CAP_DATE (currently FAT and ext4).
Adjust the assert in test_env.py().
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
test/py/tests/test_env.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py
index f8713a59ba9..e9d502148bc 100644
--- a/test/py/tests/test_env.py
+++ b/test/py/tests/test_env.py
@@ -523,7 +523,7 @@ def test_env_ext4(state_test_env):
assert 'Loading Environment from EXT4... OK' in response
response = c.run_command('ext4ls host 0:0')
- assert '8192 uboot.env' in response
+ assert(re.search('8192 .*uboot.env', ''.join(response)))
response = c.run_command('env info')
assert 'env_valid = valid' in response
--
2.53.0
More information about the U-Boot
mailing list