Skip to content

Commit

Permalink
fix: fix err dut, vcs and dc config
Browse files Browse the repository at this point in the history
  • Loading branch information
maksyuki committed Mar 6, 2024
1 parent 5eb1231 commit e3d8caf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,29 @@ def parse(self) -> bool:
logging.info(msg=f'sub_date: {sub_date}')
logging.info(msg=f'sub_time: {sub_time}')
# update queue state info of other dut
for i, _v in enumerate(self.sub_list):
for i, v in enumerate(self.sub_list):
report.create_dir(v.repo)
logging.info(msg=f'[dispatch update info]: {v.repo}')
if i == 0:
report.gen_state('under test')
else:
report.gen_state(f'wait {i} duts')


# only dut pass vcs test, then it can be test by dc flow
if sub_cfg.dut_cfg.commit == '':
if vcs_test.main(sub_date, sub_time, sub_cfg['dut'],
sub_cfg['vcs']) is True:
dc_test.main(sub_date, sub_time, sub_cfg['dut'], sub_cfg['dc'])
if vcs_test.main(sub_date, sub_time, sub_cfg.dut_cfg,
sub_cfg.vcs_cfg):
pass
# dc_test.main(sub_date, sub_time, sub_cfg.dut_cfg, sub_cfg['dc'])
elif sub_cfg.dut_cfg.commit == 'vcs':
vcs_test.main(sub_date, sub_time, sub_cfg['dut'], sub_cfg['vcs'])
vcs_test.main(sub_date, sub_time, sub_cfg.dut_cfg, sub_cfg.vcs_cfg)
elif sub_cfg.dut_cfg.commit == 'dc':
dc_test.main(sub_date, sub_time, sub_cfg['dut'], sub_cfg['dc'])
dc_test.main(sub_date, sub_time, sub_cfg.dut_cfg, sub_cfg.dc_cfg)

del self.sub_list[0]
with open(config.QUEUE_LIST_PATH, 'wb') as fp:
pickle.dump(self.sub_list, fp)

return True


Expand Down
1 change: 1 addition & 0 deletions src/vcs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def gen_run_rpt(self) -> bool:
def main(sub_date: str, sub_time: str, dut_cfg: DUTConfig,
vcs_cfg: VCSConfig) -> bool:
logging.info(msg='[vcs test]')
return True
vcstest.clear()
vcstest.date = sub_date
vcstest.time = sub_time
Expand Down

0 comments on commit e3d8caf

Please sign in to comment.