11import os
22from invoke import run
33from test .test_utils import LOGGER
4+ from codebuild_environment import get_cloned_folder_path
45
56class EKSPlatform :
67 def __init__ (self ):
@@ -14,16 +15,16 @@ def setup(self, params):
1415 """
1516 Setup EKS infrastructure and return any resources needed for tests
1617 """
17- print (f"Setting up EKS platform with params: { params } " )
18+ LOGGER . info (f"Setting up EKS platform with params: { params } " )
1819
1920 framework = params .get ("framework" )
2021 cluster_prefix = params .get ("cluster" )
2122 self .cluster_name = f"{ cluster_prefix } -{ self .build_context } "
2223 self .namespace = params .get ("namespace" )
2324
24- print (f"EKS Platform - Framework: { framework } " )
25- print (f"EKS Platform - Cluster: { self .cluster_name } " )
26- print (f"EKS Platform - Namespace: { self .namespace } " )
25+ LOGGER . info (f"EKS Platform - Framework: { framework } " )
26+ LOGGER . info (f"EKS Platform - Cluster: { self .cluster_name } " )
27+ LOGGER . info (f"EKS Platform - Namespace: { self .namespace } " )
2728
2829 if not os .getenv ("DLC_IMAGE" ):
2930 raise ValueError ("DLC_IMAGE environment variable not set" )
@@ -40,5 +41,7 @@ def execute_command(self, cmd):
4041 "DLC_IMAGE" : os .getenv ("DLC_IMAGE" ),
4142 }
4243
43- LOGGER .info (f"Executing command with EKS environment: { cmd } " )
44- run (cmd , env = env )
44+ repo_root = get_cloned_folder_path ()
45+
46+ LOGGER .info (f"Executing command from { repo_root } with EKS environment: { cmd } " )
47+ run (cmd , env = env , cwd = repo_root )
0 commit comments