summaryrefslogtreecommitdiff
path: root/test/py/tests/test_part.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/py/tests/test_part.py')
-rw-r--r--test/py/tests/test_part.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/py/tests/test_part.py b/test/py/tests/test_part.py
new file mode 100644
index 00000000000..04c95a6d3cc
--- /dev/null
+++ b/test/py/tests/test_part.py
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (C) 2020
+# Niel Fourie, DENX Software Engineering, lusus@denx.de
+
+import pytest
+
+@pytest.mark.buildconfigspec('cmd_part')
+@pytest.mark.buildconfigspec('partitions')
+@pytest.mark.buildconfigspec('efi_partition')
+def test_part_types(ubman):
+ """Test that `part types` prints a result which includes `EFI`."""
+ output = ubman.run_command('part types')
+ assert "Supported partition tables:" in output
+ assert "EFI" in output