Skip to content

Commit

Permalink
[CTG] Set env_dir to '../../riscv-test-suite/env'
Browse files Browse the repository at this point in the history
Signed-off-by: MingZhu Yan <yanmingzhu@iscas.ac.cn>
  • Loading branch information
trdthg committed Nov 13, 2024
1 parent 37dc852 commit 8a90a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion riscv-ctg/riscv_ctg/ctg.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def ctg(verbose, out, random ,xlen_arg,flen_arg, cgf_file,num_procs,base_isa, ma
logger.info('Copyright (c) 2020, InCore Semiconductors Pvt. Ltd.')
logger.info('All Rights Reserved.')
logger.info("Copying env folder to Output directory.")
env_dir = os.path.expanduser("~/riscv-arch-test/riscv-test-suite/env")
current_dir = os.path.dirname(os.path.abspath(__file__))
env_dir = os.path.join(current_dir, "../../riscv-test-suite/env")
if not os.path.exists(env_dir):
shutil.copytree(const.env,env_dir)
xlen = int(xlen_arg)
Expand Down

0 comments on commit 8a90a07

Please sign in to comment.