config_tools: fix the issue that fail to read XSD file

fix the path issue that fail to read XSD file.

Tracked-On: #6689
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Kunhui-Li 2022-04-02 10:39:19 +08:00 committed by acrnsi-robot
parent faae669130
commit 080335bbe7
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ def main(board_name, board_xml, args):
module.extract(args, board_etree)
# Validate the XML against XSD assertions
count = validator.validate_board("schema/boardchecks.xsd", board_etree)
count = validator.validate_board(os.path.join(script_dir, 'schema', 'boardchecks.xsd'), board_etree)
if count == 0:
logging.info("All board checks passed.")