From 46c1d098e74175a9efc92f77e8dbd0bfede635cb Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 21 Oct 2022 15:52:10 +0200 Subject: Stop hardcoding KUBECONFIG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6ac15eb3686d6502dfa1bbe179622693b1961f45 Signed-off-by: Cédric Ollivier (cherry picked from commit abcc9aa9e57a8af8e4479f897a77c22b16324f6a) --- functest_kubernetes/netperf/netperf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functest_kubernetes/netperf/netperf.py') diff --git a/functest_kubernetes/netperf/netperf.py b/functest_kubernetes/netperf/netperf.py index 2bd1e1be..31788176 100644 --- a/functest_kubernetes/netperf/netperf.py +++ b/functest_kubernetes/netperf/netperf.py @@ -44,7 +44,7 @@ class Netperf(testcase.TestCase): if not os.path.exists(self.res_dir): os.makedirs(self.res_dir) cmd = ['launch', '-iterations', '1', '-kubeConfig', - '/root/.kube/config'] + '~/.kube/config'] output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8")) lfiles = glob.glob(os.path.join( -- cgit 1.2.3-korg