aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-09-06 13:57:11 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-09-06 13:58:44 +0200
commit06347d34ab2f7f901bcfe7f4a4e8c0a66a4a98d0 (patch)
tree13961811211024a2dcca3c73d97e55f5da9235bf /functest_kubernetes
parentd6dd65892d173a628568dae7aa082943b8bbaa5e (diff)
Slightly generalize ginkgo params
Change-Id: I51b013056bb5b88ef2e1de31e9171129e8ce4475 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0ec2aa15acbe7cd2b28d772165c22481b85bad79)
Diffstat (limited to 'functest_kubernetes')
-rw-r--r--functest_kubernetes/k8stest.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py
index bf19461b..5d3720a3 100644
--- a/functest_kubernetes/k8stest.py
+++ b/functest_kubernetes/k8stest.py
@@ -46,10 +46,8 @@ class E2ETesting(testcase.TestCase):
"""Run the test suites"""
cmd_line = ['e2e.test', '-ginkgo.noColor', '-kubeconfig', self.config,
'-provider', 'local', '-report-dir', self.res_dir]
- if kwargs.get("focus"):
- cmd_line.extend(['-ginkgo.focus', kwargs.get("focus")])
- if kwargs.get("skip"):
- cmd_line.extend(['-ginkgo.skip', kwargs.get("skip")])
+ for arg in kwargs:
+ cmd_line.extend(['-ginkgo.{}'.format(arg), kwargs.get(arg)])
cmd_line.extend(['-disable-log-dump', 'true'])
self.__logger.info("Starting k8s test: '%s'.", cmd_line)
process = subprocess.Popen(cmd_line, stdout=subprocess.PIPE,