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
|
||||||
pipelined/srt/qslc_r4a2.sv
|
pipelined/srt/qslc_r4a2.sv
|
||||||
pipelined/srt/testvectors
|
pipelined/srt/testvectors
|
||||||
|
pipelined/regression/wkdir
|
@ -10,7 +10,7 @@
|
|||||||
# output.
|
# output.
|
||||||
#
|
#
|
||||||
##################################
|
##################################
|
||||||
import sys,os
|
import sys,os,shutil
|
||||||
|
|
||||||
class bcolors:
|
class bcolors:
|
||||||
HEADER = '\033[95m'
|
HEADER = '\033[95m'
|
||||||
@ -26,6 +26,7 @@ class bcolors:
|
|||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
regressionDir = os.path.dirname(os.path.abspath(__file__))
|
regressionDir = os.path.dirname(os.path.abspath(__file__))
|
||||||
os.chdir(regressionDir)
|
os.chdir(regressionDir)
|
||||||
|
|
||||||
TestCase = namedtuple("TestCase", ['name', 'variant', 'cmd', 'grepstr'])
|
TestCase = namedtuple("TestCase", ['name', 'variant', 'cmd', 'grepstr'])
|
||||||
# name: the name of this test configuration (used in printing human-readable
|
# name: the name of this test configuration (used in printing human-readable
|
||||||
# output and picking logfile names)
|
# output and picking logfile names)
|
||||||
@ -158,9 +159,13 @@ def main():
|
|||||||
try:
|
try:
|
||||||
os.chdir(regressionDir)
|
os.chdir(regressionDir)
|
||||||
os.mkdir("logs")
|
os.mkdir("logs")
|
||||||
|
#print(os.getcwd())
|
||||||
|
#print(regressionDir)
|
||||||
|
shutil.rmtree("wkdir")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
os.mkdir("wkdir")
|
||||||
|
|
||||||
if '-makeTests' in sys.argv:
|
if '-makeTests' in sys.argv:
|
||||||
os.chdir(regressionDir)
|
os.chdir(regressionDir)
|
||||||
os.system('./make-tests.sh | tee ./logs/make-tests.log')
|
os.system('./make-tests.sh | tee ./logs/make-tests.log')
|
||||||
|
Loading…
Reference in New Issue
Block a user