Fixed wsim running iterelf tests/coverage

This commit is contained in:
David Harris 2024-07-15 03:44:14 -07:00
parent 459eaaef6a
commit affe15191e

View file

@ -44,7 +44,7 @@ elif (args.elf != ""):
print("ELF file not found: " + args.elf)
exit(1)
if(args.testsuite.endswith('.elf')):
if(args.testsuite.endswith('.elf') and args.elf == ""): # No --elf argument; check if testsuite has a .elf extension and use that instead
if (os.path.isfile(args.testsuite)):
ElfFile = "+ElfFile=" + os.path.abspath(args.testsuite)
args.testsuite=args.testsuite.rsplit('/', 1)[1]