Remove checksum comparison in CG test.

The checksum of the build.log file changes every time because it is (in
part) based on the timestamp that the file was written (at the time of
the test run).
This commit is contained in:
Ralph Bean
2017-07-07 14:35:08 -04:00
parent 5ac5ab0c13
commit 98a1a55694

View File

@@ -113,6 +113,9 @@ class TestBuild(unittest.TestCase):
file_dir = self.cg._prepare_file_directory()
ret = self.cg._get_content_generator_metadata(file_dir)
rpms_in_tag.assert_called_once()
# Remove checksums for the logs, because they change with time.
del ret['output'][-1]['checksum']
del expected_output['output'][-1]['checksum']
self.assertEqual(expected_output, ret)
@patch("subprocess.Popen")