diff --git a/etc/rally.bash_completion b/etc/rally.bash_completion index 00351903..cabee714 100644 --- a/etc/rally.bash_completion +++ b/etc/rally.bash_completion @@ -29,7 +29,7 @@ _rally() OPTS["task_delete"]="--force --uuid" OPTS["task_detailed"]="--uuid --iterations-data" OPTS["task_list"]="--deployment --all-deployments --status --uuids-only" - OPTS["task_report"]="--tasks --out --open" + OPTS["task_report"]="--tasks --out --open --html --junit" OPTS["task_results"]="--uuid" OPTS["task_sla_check"]="--uuid --json" OPTS["task_start"]="--deployment --task --task-args --task-args-file --tag --no-use --abort-on-sla-failure" @@ -78,4 +78,4 @@ _rally() fi return 0 } -complete -F _rally rally +complete -F _rally rally \ No newline at end of file diff --git a/tests/functional/test_cli_task.py b/tests/functional/test_cli_task.py index afc3c858..4f74fe88 100644 --- a/tests/functional/test_cli_task.py +++ b/tests/functional/test_cli_task.py @@ -138,6 +138,12 @@ class TaskTestCase(unittest.TestCase): rally.gen_report_path(extension="html"))) self.assertRaises(utils.RallyCliError, rally, "task report --report %s" % FAKE_TASK_UUID) + rally("task report --junit --out %s" % + rally.gen_report_path(extension="junit")) + self.assertTrue(os.path.exists( + rally.gen_report_path(extension="junit"))) + self.assertRaises(utils.RallyCliError, + rally, "task report --report %s" % FAKE_TASK_UUID) def test_report_bunch_uuids(self): rally = utils.Rally()