[PATCH v3 25/81] buildman: Add a test for the -A option

Simon Glass sjg at chromium.org
Sun Jul 16 02:35:53 CEST 2023


This lacks a test at present. Add one.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/buildman/func_test.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py
index 574161aad876..6753a4098942 100644
--- a/tools/buildman/func_test.py
+++ b/tools/buildman/func_test.py
@@ -999,3 +999,10 @@ endif
             result = self._RunControl('-R', outfile, brds=None,
                                       get_builder=False)
         self.assertTrue(os.path.exists(outfile))
+
+    def test_print_prefix(self):
+        """Test that we can print the toolchain prefix"""
+        with test_util.capture_sys_output() as (stdout, stderr):
+            result = self._RunControl('-A', 'board0')
+        self.assertEqual('arm-\n', stdout.getvalue())
+        self.assertEqual('', stderr.getvalue())
-- 
2.41.0.455.g037347b96a-goog



More information about the U-Boot mailing list