aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/k8stest.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-10-21 17:21:54 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-10-21 17:42:52 +0200
commit5c21b0a45fcb233c0f19be260fefe7ceac58d156 (patch)
treef9432d9f5a6e96b550f9cb7616172871da1ce45a /functest_kubernetes/k8stest.py
parent1234fc4da37aedf8dfac3af82319919ba2096c50 (diff)
Use Path.home() instead of ~
Change-Id: I5863f4e0315b67a07dab4756857dba7aa37932f0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d744fb5276d47fb3ba7ad2d4cb1fb2d3bfaca3eb)
Diffstat (limited to 'functest_kubernetes/k8stest.py')
-rw-r--r--functest_kubernetes/k8stest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py
index ce050cb9..5dbee58f 100644
--- a/functest_kubernetes/k8stest.py
+++ b/functest_kubernetes/k8stest.py
@@ -16,6 +16,7 @@ from __future__ import division
import logging
import os
+from pathlib import Path
import re
import subprocess
import time
@@ -30,7 +31,7 @@ class E2ETesting(testcase.TestCase):
__logger = logging.getLogger(__name__)
- config = '~/.kube/config'
+ config = f'{Path.home()}/.kube/config'
gcr_repo = os.getenv("MIRROR_REPO", "gcr.io")
k8s_gcr_repo = os.getenv("MIRROR_REPO", "k8s.gcr.io")