forked from Github_Repos/cvw
		
	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,9 +159,13 @@ 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)
 | 
			
		||||
        os.system('./make-tests.sh | tee ./logs/make-tests.log')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user