Reset even if not purging temp files.

This commit is contained in:
Matt Guthaus 2018-02-02 14:26:09 -08:00
parent 2a8199c3ca
commit 9d7dc4c552
1 changed files with 1 additions and 2 deletions

View File

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