From d4366b11ad556f4e662afd4fb90af5e51d5137e5 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 19 Jul 2023 17:48:35 -0600 Subject: [PATCH] buildman: Add a test for the -A option This lacks a test at present. Add one. Signed-off-by: Simon Glass --- 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 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()) -- 2.39.5