gather: Do not write metadata if gather phase skipped
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
cba3f1c88f
commit
2cbd75803a
@ -113,8 +113,9 @@ class GatherPhase(PhaseBase):
|
|||||||
self.pkgset_phase.package_sets,
|
self.pkgset_phase.package_sets,
|
||||||
manifest=self.manifest)
|
manifest=self.manifest)
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
self._write_manifest()
|
self._write_manifest()
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
super(GatherPhase, self).stop()
|
super(GatherPhase, self).stop()
|
||||||
|
|
||||||
|
|
||||||
|
@ -911,7 +911,7 @@ class TestGatherPhase(helpers.PungiTestCase):
|
|||||||
phase.stop()
|
phase.stop()
|
||||||
|
|
||||||
self.assertEqual(gather_wrapper.call_args_list, [])
|
self.assertEqual(gather_wrapper.call_args_list, [])
|
||||||
self.assertTrue(os.path.isfile(os.path.join(self.topdir, 'compose', 'metadata', 'rpms.json')))
|
self.assertFalse(os.path.isfile(os.path.join(self.topdir, 'compose', 'metadata', 'rpms.json')))
|
||||||
|
|
||||||
def test_validates_wrong_requiring_variant(self):
|
def test_validates_wrong_requiring_variant(self):
|
||||||
pkgset_phase = mock.Mock()
|
pkgset_phase = mock.Mock()
|
||||||
|
Loading…
Reference in New Issue
Block a user