From 97a432570af54cd47daae63740b3ac82ad57d29c Mon Sep 17 00:00:00 2001 From: David Harris Date: Thu, 15 Dec 2022 10:24:58 -0800 Subject: [PATCH] Regression delete wkdir files to prevent spurious failures --- .gitignore | 1 + pipelined/regression/regression-wally | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 49d1e1603..09b81b6c2 100644 --- a/.gitignore +++ b/.gitignore @@ -117,3 +117,4 @@ pipelined/srt/testgen pipelined/srt/qslc_r4a2 pipelined/srt/qslc_r4a2.sv pipelined/srt/testvectors +pipelined/regression/wkdir \ No newline at end of file diff --git a/pipelined/regression/regression-wally b/pipelined/regression/regression-wally index 5318a0f76..17f255251 100755 --- a/pipelined/regression/regression-wally +++ b/pipelined/regression/regression-wally @@ -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')