mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Regression delete wkdir files to prevent spurious failures
This commit is contained in:
parent
2457448e29
commit
5b040b7935
1
.gitignore
vendored
1
.gitignore
vendored
@ -117,3 +117,4 @@ pipelined/srt/testgen
|
||||
pipelined/srt/qslc_r4a2
|
||||
pipelined/srt/qslc_r4a2.sv
|
||||
pipelined/srt/testvectors
|
||||
pipelined/regression/wkdir
|
@ -10,7 +10,7 @@
|
||||
# output.
|
||||
#
|
||||
##################################
|
||||
import sys,os
|
||||
import sys,os,shutil
|
||||
|
||||
class bcolors:
|
||||
HEADER = '\033[95m'
|
||||
@ -26,6 +26,7 @@ class bcolors:
|
||||
from collections import namedtuple
|
||||
regressionDir = os.path.dirname(os.path.abspath(__file__))
|
||||
os.chdir(regressionDir)
|
||||
|
||||
TestCase = namedtuple("TestCase", ['name', 'variant', 'cmd', 'grepstr'])
|
||||
# name: the name of this test configuration (used in printing human-readable
|
||||
# output and picking logfile names)
|
||||
@ -158,8 +159,12 @@ def main():
|
||||
try:
|
||||
os.chdir(regressionDir)
|
||||
os.mkdir("logs")
|
||||
#print(os.getcwd())
|
||||
#print(regressionDir)
|
||||
shutil.rmtree("wkdir")
|
||||
except:
|
||||
pass
|
||||
os.mkdir("wkdir")
|
||||
|
||||
if '-makeTests' in sys.argv:
|
||||
os.chdir(regressionDir)
|
||||
|
Loading…
Reference in New Issue
Block a user