Close output log in test 30 to avoid warning

This commit is contained in:
Matt Guthaus 2018-07-26 14:01:40 -07:00
parent bc67ad5ead
commit c8808c268a
1 changed files with 4 additions and 1 deletions

View File

@ -64,10 +64,13 @@ class openram_test(openram_test):
self.assertTrue(len(files)>0)
# grep any errors from the output
output = open("{0}/output.log".format(out_path),"r").read()
output_log = open("{0}/output.log".format(out_path),"r")
output = output_log.read()
output_log.close()
self.assertEqual(len(re.findall('ERROR',output)),0)
self.assertEqual(len(re.findall('WARNING',output)),0)
# now clean up the directory
if os.path.exists(out_path):
shutil.rmtree(out_path, ignore_errors=True)