diff --git a/tools/integration_tests/interrupt/git_clone_test.go b/tools/integration_tests/interrupt/git_clone_test.go index 46eb8091ea..9bd451ebfe 100644 --- a/tools/integration_tests/interrupt/git_clone_test.go +++ b/tools/integration_tests/interrupt/git_clone_test.go @@ -56,27 +56,27 @@ func (s *ignoreInterruptsTest) Setup(t *testing.T) { //////////////////////////////////////////////////////////////////////// func cloneRepository() ([]byte, error) { - return operations.ExecuteToolCommandfInDIrectory(testDirPath, tool, "clone %s", repoURL) + return operations.ExecuteToolCommandfInDirectory(testDirPath, tool, "clone %s", repoURL) } func checkoutBranch(branchName string) ([]byte, error) { repositoryPath := path.Join(testDirPath, repoName) - return operations.ExecuteToolCommandfInDIrectory(repositoryPath, tool, "checkout %s", branchName) + return operations.ExecuteToolCommandfInDirectory(repositoryPath, tool, "checkout %s", branchName) } func emptyCommit() ([]byte, error) { repositoryPath := path.Join(testDirPath, repoName) - return operations.ExecuteToolCommandfInDIrectory(repositoryPath, tool, "commit --allow-empty -m \" empty commit\"") + return operations.ExecuteToolCommandfInDirectory(repositoryPath, tool, "commit --allow-empty -m \" empty commit\"") } func gitAdd(filePath string) ([]byte, error) { repositoryPath := path.Join(testDirPath, repoName) - return operations.ExecuteToolCommandfInDIrectory(repositoryPath, tool, "add %s", filePath) + return operations.ExecuteToolCommandfInDirectory(repositoryPath, tool, "add %s", filePath) } func nonEmptyCommit() ([]byte, error) { repositoryPath := path.Join(testDirPath, repoName) - return operations.ExecuteToolCommandfInDIrectory(repositoryPath, tool, "commit -m \"test\"") + return operations.ExecuteToolCommandfInDirectory(repositoryPath, tool, "commit -m \"test\"") } //////////////////////////////////////////////////////////////////////// diff --git a/tools/integration_tests/util/operations/operations.go b/tools/integration_tests/util/operations/operations.go index 7635a55f05..c1fbb6da2e 100644 --- a/tools/integration_tests/util/operations/operations.go +++ b/tools/integration_tests/util/operations/operations.go @@ -43,7 +43,7 @@ func executeToolCommandf(tool string, format string, args ...any) ([]byte, error } // Executes any given tool (e.g. gsutil/gcloud) with given args in specified directory. -func ExecuteToolCommandfInDIrectory(dirPath, tool, format string, args ...any) ([]byte, error) { +func ExecuteToolCommandfInDirectory(dirPath, tool, format string, args ...any) ([]byte, error) { cmdArgs := tool + " " + fmt.Sprintf(format, args...) cmd := exec.Command("/bin/bash", "-c", cmdArgs) cmd.Dir = dirPath