From 9d7dc4c552213057f391716b1bd883027d9cbec9 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 2 Feb 2018 14:26:09 -0800 Subject: [PATCH] Reset even if not purging temp files. --- compiler/tests/testutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index ced80bb7..6db5c60d 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -39,13 +39,12 @@ class openram_test(unittest.TestCase): self.reset() self.fail("LVS mismatch: {}".format(a.name)) + self.reset() if OPTS.purge_temp: self.cleanup() def cleanup(self): """ Reset the duplicate checker and cleanup files. """ - self.reset() - files = glob.glob(OPTS.openram_temp + '*') for f in files: # Only remove the files