diff options
author | Neha Malcom Francis <n-francis@ti.com> | 2024-01-05 17:09:17 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-01-18 17:50:27 -0500 |
commit | 10fee88d42fe37d83f0a37b3dae69b674f8055f3 (patch) | |
tree | 7359a9452d7d85b4d4983ae1a92ef5db6ef70a6e /tools/binman/ftest.py | |
parent | 0cc7a701e9ead1229aec8a28375a46337d326377 (diff) |
tools: binman: ti_board_cfg: Check for linting problems
Use yamllint for checking whether YAML configuration files are adhering
to default yamllint rules.
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Suggested-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r-- | tools/binman/ftest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 90482518f1e..8a44bc051b3 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -7030,6 +7030,12 @@ fdt fdtmap Extract the devicetree blob from the fdtmap data = self._DoReadFile('293_ti_board_cfg.dts') self.assertEqual(TI_BOARD_CONFIG_DATA, data) + def testTIBoardConfigLint(self): + """Test that an incorrectly linted config file would generate error""" + with self.assertRaises(ValueError) as e: + data = self._DoReadFile('323_ti_board_cfg_phony.dts') + self.assertIn("Yamllint error", str(e.exception)) + def testTIBoardConfigCombined(self): """Test that a schema validated combined board config file can be generated""" data = self._DoReadFile('294_ti_board_cfg_combined.dts') |