diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-05 13:18:35 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-07-12 07:57:20 -0600 |
commit | 90c8c1dad52946ac1945cf2007425af53002352f (patch) | |
tree | 3aece64ee550889e73371b940e3591f2748b6561 | |
parent | 9f88626ee19def2c7b486e260c4867211069a927 (diff) | |
download | u-boot-90c8c1dad52946ac1945cf2007425af53002352f.zip u-boot-90c8c1dad52946ac1945cf2007425af53002352f.tar.gz u-boot-90c8c1dad52946ac1945cf2007425af53002352f.tar.bz2 |
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.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index d9b4c41..5dbbb53 100644 --- a/tools/buildman/func_test.py +++ b/tools/buildman/func_test.py @@ -785,10 +785,9 @@ CONFIG_LOCALVERSION=y ''', cfg_data) self.assertIn('Not dropping LOCALVERSION_AUTO', stdout.getvalue()) - def testRegenBoards(self): - """Test that we can regenerate the boards.cfg file""" - outfile = os.path.join(self._output_dir, 'test-boards.cfg') - if os.path.exists(outfile): - os.remove(outfile) - 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()) |