Skip to content

Commit

Permalink
typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeenkaur committed May 2, 2024
1 parent ea14d42 commit e1f1409
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tools/integration_tests/interrupt/git_clone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\"")
}

////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion tools/integration_tests/util/operations/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1f1409

Please sign in to comment.