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