diff --git a/avocado/plugins/replay.py b/avocado/plugins/replay.py index 75024da42e3f39ae7b28f8b5c575ce1710ba63a6..61fe0b4f4cf89b0b2e90aae3efac55cc747223e1 100644 --- a/avocado/plugins/replay.py +++ b/avocado/plugins/replay.py @@ -209,7 +209,8 @@ class Replay(CLI): 'external_runner_testdir', 'external_runner_chdir', 'failfast', - 'ignore_missing_references'] + 'ignore_missing_references', + 'execution_order'] if replay_args is None: LOG_UI.warn('Source job args data not found. These options will ' 'not be loaded in this replay job: %s', diff --git a/avocado/plugins/run.py b/avocado/plugins/run.py index a3a42c14c3df5faa269f5cfaf546ee14f41f12cd..3cf8d7fd14e206ebc2e10ce1ec0ecfdc9ff34d5c 100644 --- a/avocado/plugins/run.py +++ b/avocado/plugins/run.py @@ -99,7 +99,7 @@ class Run(CLICmd): "system information (hardware details, profilers, " "etc.). Current: %(default)s") - parser.add_argument("--execution-order", default="variants-per-test", + parser.add_argument("--execution-order", choices=("tests-per-variant", "variants-per-test"), help="Defines the order of iterating through test " diff --git a/optional_plugins/html/avocado_result_html/__init__.py b/optional_plugins/html/avocado_result_html/__init__.py index 7ff9bf4c423530c12deb8a195107b8aff7d819a8..f3899b4692935dcb2a42077112d0f0bd07b7488b 100644 --- a/optional_plugins/html/avocado_result_html/__init__.py +++ b/optional_plugins/html/avocado_result_html/__init__.py @@ -267,12 +267,15 @@ class HTMLResult(Result): open_browser = getattr(job.args, 'open_browser', False) if getattr(job.args, 'html_job_result', 'off') == 'on': - html_dir = os.path.join(job.logdir, 'html') - if os.path.exists(html_dir): # update the html result if exists - shutil.rmtree(html_dir) - os.makedirs(html_dir) - html_path = os.path.join(html_dir, 'results.html') + # FIXME: remove html legacy dir after 52.0 LTS release + html_legacy_dir = os.path.join(job.logdir, 'html') + if os.path.exists(html_legacy_dir): # update the html result if exists + shutil.rmtree(html_legacy_dir) + html_path = os.path.join(job.logdir, 'results.html') self._render(result, html_path) + os.makedirs(html_legacy_dir) + os.symlink(os.path.join(os.path.pardir, 'results.html'), + os.path.join(html_legacy_dir, 'results.html')) if getattr(job.args, 'stdout_claimed_by', None) is None: LOG_UI.info("JOB HTML : %s", html_path) if open_browser: