BugFix --noclean option in the CLI 53/16753/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 12 Jul 2016 11:28:24 +0000 (13:28 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Tue, 12 Jul 2016 11:29:11 +0000 (13:29 +0200)
JIRA: FUNCTEST-340

The flag was placed after the flag -t and it should be
before

Change-Id: I069556b00c31039f1f4cb89c42e17887c45dcb50
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
cli/commands/cli_testcase.py
cli/commands/cli_tier.py

index 5fe78a5..abf67d1 100644 (file)
@@ -60,7 +60,7 @@ class CliTestcase:
         else:
             if noclean:
                 cmd = ("python /home/opnfv/repos/functest/ci/run_tests.py "
-                       "-t --no-clean %s" % testname)
+                       "-n -t %s" % testname)
             else:
                 cmd = ("python /home/opnfv/repos/functest/ci/run_tests.py "
                        "-t %s" % testname)
index 4b714c2..8e031cc 100644 (file)
@@ -70,7 +70,7 @@ class CliTier:
         else:
             if noclean:
                 cmd = ("python /home/opnfv/repos/functest/ci/run_tests.py "
-                       "-t --no-clean %s" % tiername)
+                       "-n -t %s" % tiername)
             else:
                 cmd = ("python /home/opnfv/repos/functest/ci/run_tests.py "
                        "-t %s" % tiername)