From 5b48eb278a9c5c4ae549aa40d305f079c9441960 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 9 Sep 2019 15:07:56 +0200 Subject: [PATCH] test/test_init: delete generated file --- test/test_init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_init.py b/test/test_init.py index 692df7e..f8d33cf 100644 --- a/test/test_init.py +++ b/test/test_init.py @@ -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):