summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-20 02:48:35 +0300
committerSimon Glass <sjg@chromium.org>2023-07-24 18:34:10 +0300
commitd4366b11ad556f4e662afd4fb90af5e51d5137e5 (patch)
tree6fd9ef9711b192593ee572c8c504758f520ead85
parentf7a36d54bab8173833acb862c049928a85745d97 (diff)
downloadu-boot-d4366b11ad556f4e662afd4fb90af5e51d5137e5.tar.xz
buildman: Add a test for the -A option
This lacks a test at present. Add one. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/buildman/func_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py
index 85222b9f9b..ca579a27c6 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())