Only remove files when cleaning temp dir

This commit is contained in:
Matt Guthaus 2018-01-30 07:58:31 -08:00
parent c63eb3be3b
commit 1d9274621a
1 changed files with 3 additions and 1 deletions

View File

@ -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