From 823cc83d55001f8adc61cbddb1e99068331ccee1 Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Wed, 12 Aug 2015 18:44:13 -0300 Subject: [PATCH] avocado.core.job: Print variants after the tree representation Display the variants after the tree representation in the job log. Signed-off-by: Lucas Meneghel Rodrigues --- avocado/core/job.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/avocado/core/job.py b/avocado/core/job.py index 63d2c2ac..6bf7e4bd 100644 --- a/avocado/core/job.py +++ b/avocado/core/job.py @@ -406,6 +406,16 @@ class Job(object): job_log.info('Temporary dir: %s', data_dir.get_tmp_dir()) job_log.info('') + def _log_mux_variants(self, mux): + job_log = _TEST_LOGGER + + for (index, tpl) in enumerate(mux.variants): + paths = ', '.join([x.path for x in tpl]) + job_log.info('Variant %s: %s', index + 1, paths) + + if mux.variants: + job_log.info('') + def _log_job_debug_info(self, mux): """ Log relevant debug information to the job log. @@ -417,6 +427,7 @@ class Job(object): self._log_avocado_datadir() self._log_mux_tree(mux) self._log_tmp_dir() + self._log_mux_variants(mux) self._log_job_id() def _run(self, urls=None): -- GitLab