aboutsummaryrefslogtreecommitdiffstats
path: root/functest/cli/cli_base.py
diff options
context:
space:
mode:
authorHelen Yao <yaohelan@huawei.com>2016-12-28 09:16:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-28 09:16:36 +0000
commit254a7e643bccd48bf562f8362745783dfb9542b4 (patch)
treec333dc67cbdaa199ba932555cc16b91ef3a6fb50 /functest/cli/cli_base.py
parent598b77988aa6ba2004c8b99b8fe09dbf09e560fa (diff)
parentdaa4407e8a40e7eb2083335bb394d7200d4ea576 (diff)
Merge "Add a flag in the CLI to report results to DB"
Diffstat (limited to 'functest/cli/cli_base.py')
-rw-r--r--functest/cli/cli_base.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/functest/cli/cli_base.py b/functest/cli/cli_base.py
index 3b14fa33..cc697ed7 100644
--- a/functest/cli/cli_base.py
+++ b/functest/cli/cli_base.py
@@ -121,8 +121,11 @@ def testcase_show(testname):
@click.option('-n', '--noclean', is_flag=True, default=False,
help='The created openstack resources by the test'
'will not be cleaned after the execution.')
-def testcase_run(testname, noclean):
- _testcase.run(testname, noclean)
+@click.option('-r', '--report', is_flag=True, default=False,
+ help='Push results to the results DataBase. Only CI Pods'
+ 'have rights to do that.')
+def testcase_run(testname, noclean, report):
+ _testcase.run(testname, noclean, report)
@tier.command('list', help="Lists the available tiers.")
@@ -147,5 +150,8 @@ def tier_gettests(tiername):
@click.option('-n', '--noclean', is_flag=True, default=False,
help='The created openstack resources by the tests'
'will not be cleaned after the execution.')
-def tier_run(tiername, noclean):
- _tier.run(tiername, noclean)
+@click.option('-r', '--report', is_flag=True, default=False,
+ help='Push results to the results DataBase. Only CI Pods'
+ 'have rights to do that.')
+def tier_run(tiername, noclean, report):
+ _tier.run(tiername, noclean, report)