From: Simon Glass Date: Wed, 19 Jul 2023 23:48:35 +0000 (-0600) Subject: buildman: Add a test for the -A option X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d4366b11ad556f4e662afd4fb90af5e51d5137e5;p=u-boot.git buildman: Add a test for the -A option This lacks a test at present. Add one. Signed-off-by: Simon Glass --- 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())