From 1d9274621a0e00114418ef274b806428b6bee19b Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 30 Jan 2018 07:58:31 -0800 Subject: [PATCH] Only remove files when cleaning temp dir --- compiler/tests/testutils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index c1b0fe1a..12a77c31 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -31,7 +31,9 @@ class openram_test(unittest.TestCase): files = glob.glob(OPTS.openram_temp + '*') for f in files: - os.remove(f) + # Only remove the files + if os.path.isfile(f): + os.remove(f) # reset the static duplicate name checker for unit tests import design