99platform_name = None
1010k8s_version = None
1111operator_version = None
12+ test_script_params = None
1213git_branch = None
1314beku_suite = None
1415metadata_annotations = {}
@@ -85,12 +86,14 @@ def read_params():
8586 - GIT_BRANCH
8687 - BEKU_SUITE
8788 - OPERATOR_VERSION
89+ - TEST_SCRIPT_PARAMS
8890 - METADATA_ANNOTATION_xyz
8991 """
9092 global testsuite_name
9193 global platform_name
9294 global k8s_version
9395 global operator_version
96+ global test_script_params
9497 global git_branch
9598 global beku_suite
9699 global metadata_annotations
@@ -107,6 +110,8 @@ def read_params():
107110 platform_name , k8s_version = read_platform_and_k8s_version ()
108111 if 'OPERATOR_VERSION' in os .environ :
109112 operator_version = os .environ ["OPERATOR_VERSION" ]
113+ if 'TEST_SCRIPT_PARAMS' in os .environ :
114+ test_script_params = os .environ ["TEST_SCRIPT_PARAMS" ]
110115 if 'GIT_BRANCH' in os .environ :
111116 git_branch = os .environ ["GIT_BRANCH" ]
112117 if 'BEKU_SUITE' in os .environ :
@@ -219,6 +224,11 @@ def create_testsuite():
219224 cluster_definition ['metadata' ]['annotations' ] = {}
220225 for key ,value in metadata_annotations .items ():
221226 cluster_definition ['metadata' ]['annotations' ][key ] = value
222-
223227 write_cluster_definition (cluster_definition )
224- write_test_script (testsuite , testsuite_platform_definition ['test_params' ] if 'test_params' in testsuite_platform_definition else '' )
228+
229+ test_script_params_array = []
230+ if 'test_params' in testsuite_platform_definition :
231+ test_script_params_array .append (testsuite_platform_definition ['test_params' ])
232+ if test_script_params :
233+ test_script_params_array .append (test_script_params )
234+ write_test_script (testsuite , ' ' .join (test_script_params_array ))
0 commit comments