File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def clean_command():
63
63
os .remove (os .path .join (TF_TEST_BINARY_PATH , file ))
64
64
logging .info ("Done" )
65
65
66
+
66
67
@click .command (name = "terratest-tests" , help = "Run Golang Terratest tests" )
67
68
def terratest_tests ():
68
69
logging .info (f"Running terratest tests from { TERRATEST_PROJECT_FOLDER } directory" )
@@ -73,6 +74,7 @@ def terratest_tests():
73
74
except Exception as e :
74
75
logging .error (f"Failed to execute terratest tests: { str (e )} " )
75
76
77
+
76
78
if __name__ == "__main__" :
77
79
cli .add_command (build_command )
78
80
cli .add_command (patch_command )
Original file line number Diff line number Diff line change 19
19
20
20
21
21
def execute_command (
22
- cmd : List [str ], env : Optional [Dict [str , str ]] = None , cwd : Optional [str ] = None
22
+ cmd : List [str ], env : Optional [Dict [str , str ]] = None , cwd : Optional [str ] = None
23
23
) -> Tuple [int , str ]:
24
24
"""Execute a command and return the return code.
25
25
@@ -57,7 +57,7 @@ def execute_command(
57
57
58
58
59
59
def build_test_binary (
60
- service : str , tf_root_path : str , force_build : bool = False
60
+ service : str , tf_root_path : str , force_build : bool = False
61
61
) -> Tuple [int , str ]:
62
62
"""
63
63
Build the test binary for a given service.
@@ -156,6 +156,7 @@ def patch_repository():
156
156
if stdout :
157
157
logging .info (f"{ patch_file } has been patched successfully." )
158
158
159
+
159
160
def run_terratest_tests (terratest_path : str ) -> Tuple [int , str ]:
160
161
"""
161
162
Run the Golang Terratest tests for the specified project.
You can’t perform that action at this time.
0 commit comments