update run script to delete vcs files before test run

This commit is contained in:
M0stafaRady 2022-10-01 12:28:52 -07:00
parent 555488c832
commit d12fac2ad1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class RunTest:
os.system(f"vcs -cm line -R -diag=sdf:verbose +sdfverbose +neg_tchk -debug_access -full64 -l {self.sim_path}/test.log caravel_top -Mdir={self.sim_path}/csrc -o {self.sim_path}/simv +vpi -P pli.tab -load $(cocotb-config --lib-name-path vpi vcs)")
self.passed = search_str(self.full_terminal.name,"Test passed with (0)criticals (0)errors")
Path(f'{self.sim_path}/{self.passed}').touch()
os.system("rm AN.DB/ cm.log results.xml ucli.key -r")
def find(self,name, path):
for root, dirs, files in os.walk(path):
if name in files: