X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=cli%2Fcli_base.py;h=827f8a4b6540a12f3a2a6950a95608ad92dcad89;hb=refs%2Fchanges%2F95%2F24295%2F1;hp=25696dbe9113002340b576e6a985fd5d209037b1;hpb=acd3d80504a56183a4909dce52b56bc7e15bc6cd;p=functest.git diff --git a/cli/cli_base.py b/cli/cli_base.py index 25696dbe9..827f8a4b6 100644 --- a/cli/cli_base.py +++ b/cli/cli_base.py @@ -82,7 +82,7 @@ def os_show_credentials(): @openstack.command('fetch-rc', help="Fetch the OpenStack RC file from " - "the installer") + "the installer.") def os_fetch_rc(): _openstack.fetch_credentials() @@ -117,8 +117,11 @@ def testcase_show(testname): @testcase.command('run', help="Executes a test case.") @click.argument('testname', type=click.STRING, required=True) -def testcase_run(testname): - _testcase.run(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) @tier.command('list', help="Lists the available tiers.") @@ -140,5 +143,8 @@ def tier_gettests(tiername): @tier.command('run', help="Executes all the tests within a tier.") @click.argument('tiername', type=click.STRING, required=True) -def tier_run(tiername): - _tier.run(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)