Extend the migration code

This commit is contained in:
Stephan Kulow 2019-04-15 11:01:49 +02:00
parent f5220af12d
commit f33d79acfa

View File

@ -169,17 +169,20 @@ class ToTestPublisher(ToTestManager):
current_snapshot = None
if not self.get_status('testing'):
# migrating. Normally the releaser maintains that snapshot, but to differentiate
# migrating to the attribute status
# Normally the releaser maintains that snapshot, but to differentiate
# bootstrap of new project and migration we explicitly set 'NONE' if there is Nothing
self.update_status('testing', current_snapshot if current_snapshot else 'NONE')
self.update_status('publishing', self.api.pseudometa_file_load(self.version_file('snapshot')))
group_id = self.openqa_group_id()
if self.get_status('publishing') == current_snapshot or self.get_status('published') == current_snapshot:
self.logger.info('{} is already publishing'.format(current_snapshot))
return None
self.update_pinned_descr = False
current_result = self.overall_result(current_snapshot)
current_qa_version = self.current_qa_version()