[PATCH v4 27/83] buildman: Add a test for the -A option

Simon Glass sjg at chromium.org
Thu Jul 20 01:48:35 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 85222b9f9bc2..ca579a27c61f 100644
--- a/tools/buildman/func_test.py
+++ b/tools/buildman/func_test.py
@@ -1016,3 +1016,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.487.g6d72f3e995-goog



More information about the U-Boot mailing list