Skip to content

Commit

Permalink
chore: modify some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
maksyuki committed Mar 6, 2024
1 parent e3d8caf commit 0dea16d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@

# CUR_BRAN = '202302'
CUR_BRAN = 'main' # NOTE: just for test
HOME_DIR = f'{os.getcwd()}/'
DATA_DIR = f'{HOME_DIR}../data/{CUR_BRAN}'
HOME_DIR = f'{os.getcwd()}'
DATA_DIR = f'{HOME_DIR}/../data/{CUR_BRAN}'
SUBMIT_LIST_PATH = f'{DATA_DIR}/submit_list'
DUT_LIST_PATH = f'{DATA_DIR}/dut_list'
QUEUE_LIST_PATH = f'{DATA_DIR}/queue_list'
RUN_LOG_PATH = f'{DATA_DIR}/run.log'
# NOTE: need to modify the SUBMIT_DIR path for the CICD repo
# now just for test
SUBMIT_DIR = f'{HOME_DIR}../tests/intg'
SUBMIT_DIR = f'{HOME_DIR}/../tests/intg'
SUB_DIR = f'{SUBMIT_DIR}/submit'
RPT_DIR = f'{SUBMIT_DIR}/report'
WAVE_DIR = f'{HOME_DIR}../tests/wave'
WAVE_DIR = f'{HOME_DIR}/../tests/wave'

# vcs
VCS_DIR = f'{HOME_DIR}../vcs'
VCS_DIR = f'{HOME_DIR}/../vcs'
VCS_RUN_DIR = f'{VCS_DIR}/run'
VCS_CPU_DIR = f'{VCS_DIR}/cpu'
VCS_SCRIPT_DIR = f'{VCS_DIR}/script'
# dc
DC_SRC_DIR = f'{HOME_DIR}../lib/dc/bes_data/syn/scr'
DC_CFG_DIR = f'{HOME_DIR}../lib/dc/bes_data/common'
DC_SRC_DIR = f'{HOME_DIR}/../lib/dc/bes_data/syn/scr'
DC_CFG_DIR = f'{HOME_DIR}/../lib/dc/bes_data/common'
DC_LOG_DIR = f'{DC_SRC_DIR}../log'
DC_RPT_DIR = f'{DC_SRC_DIR}../rpt'

Expand Down
5 changes: 2 additions & 3 deletions src/vcs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def clear_env(self):

def intg_soc(self):
os.chdir(config.VCS_CPU_DIR)
dut_path = config.SUB_DIR + '/' + self.dut_cfg.file
dut_path = f'{config.SUB_DIR}/{self.dut_cfg.file}'
os.system(f'cp -rf {dut_path} .')

os.chdir(config.VCS_SCRIPT_DIR)
Expand Down Expand Up @@ -105,7 +105,7 @@ def gen_wave_rpt(self):
wave_path = self.gen_wave_dir()
os.system(f'cp -rf {wave_name}.fst {wave_path}')
os.chdir(wave_path)

os.chdir(config.HOME_DIR)

def clear_wave_rpt(self):
Expand Down Expand Up @@ -203,7 +203,6 @@ 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 0dea16d

Please sign in to comment.