Added more information when a board test is missing

- During tests migration to a new KiCad
This commit is contained in:
Salvador E. Tropea 2021-12-27 15:20:52 -03:00
parent a72aac4e54
commit 4253368dd8
1 changed files with 2 additions and 2 deletions

View File

@ -134,9 +134,9 @@ class TestContext(object):
self.sch_file = os.path.abspath(os.path.join(self.get_board_dir(), self.board_name + KICAD_SCH_EXT))
logging.info('KiCad file: '+self.board_file)
if self.mode == MODE_PCB:
assert os.path.isfile(self.board_file)
assert os.path.isfile(self.board_file), self.board_file
else:
assert os.path.isfile(self.sch_file)
assert os.path.isfile(self.sch_file), self.sch_file
def _get_yaml_dir(self):
this_dir = os.path.dirname(os.path.realpath(__file__))