[ttm] do not wait publishing if dryrun

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
This commit is contained in:
Michel Normand 2019-05-02 10:44:54 +02:00
parent 9cdbc9ac8d
commit 9e248644f8

View File

@ -219,6 +219,9 @@ class ToTestPublisher(ToTestManager):
if not force:
wait_time = 20
while not self.all_repos_done(self.project.test_project):
if self.dryrun:
self.logger.info('{} is still not published, do not wait as dryrun.'.format(self.project.test_project))
return
self.logger.info('{} is still not published, waiting {} seconds'.format(self.project.test_project, wait_time))
time.sleep(wait_time)