Fix wsim to use absolute path for ELF

This commit is contained in:
David Harris 2024-07-03 15:10:02 -07:00
parent f7797d6092
commit 4528b4ee2a
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ def run_test_case(elf):
if (fields[2] == "ref"):
shortelf = fields[1] + "_" + fields[3]
else:
shorelf = fields[2] + "_" + fields[3]
shortelf = fields[2] + "_" + fields[3]
# shortelf = fields[1] + "_" + fields[2]
logfile = WALLY + "/sim/" + args.sim + "/logs/" + shortelf + ".log"
cmd = "wsim " + args.config + " " + shortelf + " --elf " + elf + " --sim " + args.sim + " --lockstep > " + logfile # add coveerage flags if necessary

View file

@ -40,7 +40,7 @@ DirectorMode = 0
WALLY = os.environ.get('WALLY')
if(os.path.isfile(args.elf)):
ElfFile = "+ElfFile=" + args.elf
ElfFile = "+ElfFile=" + os.path.abspath(args.elf)
# Validate arguments
if (args.gui or args.coverage or args.fcov or args.lockstep):