test/test_init: delete generated file

This commit is contained in:
Florent Kermarrec 2019-09-09 15:07:56 +02:00
parent 188b6a8feb
commit 5b48eb278a

View file

@ -12,7 +12,9 @@ from litedram.init import get_sdram_phy_c_header, get_sdram_phy_py_header
def compare_with_reference(content, filename):
write_to_file(filename, content)
return filecmp.cmp(filename, os.path.join("test", "reference", filename))
r = filecmp.cmp(filename, os.path.join("test", "reference", filename))
os.remove(filename)
return r
class TestInit(unittest.TestCase):