diff options
author | Simon Glass | 2023-07-19 17:48:35 -0600 |
---|---|---|
committer | Simon Glass | 2023-07-24 09:34:10 -0600 |
commit | d4366b11ad556f4e662afd4fb90af5e51d5137e5 (patch) | |
tree | 6fd9ef9711b192593ee572c8c504758f520ead85 /tools | |
parent | f7a36d54bab8173833acb862c049928a85745d97 (diff) |
buildman: Add a test for the -A option
This lacks a test at present. Add one.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildman/func_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index 85222b9f9bc..ca579a27c61 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()) |