From f160b9c7fb4be206a52f289f459bf37361bca1ef Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Tue, 28 Jan 2025 23:58:44 -0800 Subject: [PATCH] Regression directory creation fix --- bin/regression-wally | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/regression-wally b/bin/regression-wally index 4ec41bf19..9291faabc 100755 --- a/bin/regression-wally +++ b/bin/regression-wally @@ -479,12 +479,13 @@ def makeDirs(sims): for sim in sims: dirs = [f"{regressionDir}/{sim}/wkdir", f"{regressionDir}/{sim}/logs"] for d in dirs: - shutil.rmtree(d) + shutil.rmtree(d, ignore_errors=True) os.makedirs(d, exist_ok=True) def main(args): sims, coverStr, TIMEOUT_DUR = process_args(args) + makeDirs(sims) configs = selectTests(args, sims, coverStr) # Scale the number of concurrent processes to the number of test cases, but # max out at a limited number of concurrent processes to not overwhelm the system