aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-10-05 12:05:08 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-10-05 14:46:43 +0200
commitb100b1254e06719bf1c779b9d53d0ac2da67fca4 (patch)
tree940bdd7a767794180c7f8769f308f70fba6934fd /functest_kubernetes
parent6ff14fe8826bcb0f635319a51032900c862a9728 (diff)
Set defaut provider to local back
It apply the same rules as sonuoboy. Any user is free to set skeleton or something else via testcases.yml. Change-Id: Id999dfd5fbcf9bde9430e0f35c63c41e80c8044f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest_kubernetes')
-rw-r--r--functest_kubernetes/k8stest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py
index 34c8ab94..bbfc5376 100644
--- a/functest_kubernetes/k8stest.py
+++ b/functest_kubernetes/k8stest.py
@@ -60,7 +60,8 @@ class E2ETesting(testcase.TestCase):
'ginkgo', '--nodes={}'.format(kwargs.get("nodes", 1)),
'--noColor', '/usr/local/bin/e2e.test', '--',
'-kubeconfig', self.config,
- '-provider', 'skeleton', '-report-dir', self.res_dir]
+ '-provider', kwargs.get('provider', 'local'),
+ '-report-dir', self.res_dir]
for arg in kwargs.get("ginkgo", {}):
cmd_line.extend(['-ginkgo.{}'.format(arg), kwargs["ginkgo"][arg]])
for key, value in self.convert_ini_to_dict(
@@ -80,7 +81,7 @@ class E2ETesting(testcase.TestCase):
boutput = process.stdout.read()
with open(os.path.join(
self.res_dir, 'e2e.log'), 'w', encoding='utf-8') as foutput:
- foutput.write(boutput)
+ foutput.write(boutput.decode("utf-8"))
grp = re.search(
r'^(FAIL|SUCCESS)!.* ([0-9]+) Passed \| ([0-9]+) Failed \|'
r' ([0-9]+) Pending \| ([0-9]+) Skipped',