mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user