
This lacks a test at present. Add one.
Signed-off-by: Simon Glass sjg@chromium.org ---
(no changes since v1)
tools/buildman/func_test.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/tools/buildman/func_test.py b/tools/buildman/func_test.py index d9b4c41ec68c..5dbbb53b6572 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())