summaryrefslogtreecommitdiff
path: root/test/py/tests/test_fs
diff options
context:
space:
mode:
authorNiel Fourie <[email protected]>2020-03-24 16:17:04 +0100
committerTom Rini <[email protected]>2020-07-07 15:36:59 -0400
commit2280fa56a00a63bbabc2076330367ec2863a474b (patch)
tree73e2b27ac85de642194f505371fa493169b65281 /test/py/tests/test_fs
parent0ffdfbd1d0eca769878913d15f232c9219cf2aa1 (diff)
cmd: fs: Add command to list supported fs types
Added command "fstypes" to list supported/included filesystems. Signed-off-by: Niel Fourie <[email protected]> Cc: Simon Glass <[email protected]> Reviewed-by: Simon Glass <[email protected]> [trini: Limit to sandbox] Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'test/py/tests/test_fs')
-rw-r--r--test/py/tests/test_fs/test_fs_cmd.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/py/tests/test_fs/test_fs_cmd.py b/test/py/tests/test_fs/test_fs_cmd.py
new file mode 100644
index 00000000000..ba39a53159e
--- /dev/null
+++ b/test/py/tests/test_fs/test_fs_cmd.py
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2020
+# Niel Fourie, DENX Software Engineering, [email protected]
+
+import pytest
+
[email protected]('cmd_fs_generic')
+def test_dm_compat(u_boot_console):
+ """Test that `fstypes` prints a result which includes `sandbox`."""
+ output = u_boot_console.run_command('fstypes')
+ assert "Supported filesystems:" in output
+ assert "sandbox" in output