Skip to content

Commit

Permalink
updated filename in zip command
Browse files Browse the repository at this point in the history
  • Loading branch information
irishabh96 committed Sep 21, 2022
1 parent e738a05 commit e0ec6ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util_fns.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,15 @@ func locateTestRunnerFileAndZip(test_suite_location string) error {
return errors.New(RUNNER_APP_NOT_FOUND)
}

file_path := strings.Split(test_runner_app_path, "/")
test_runner_file_name := file_path[len(file_path)-1]

_, err := exec.Command("cp", "-r", test_runner_app_path, ".").Output()
if err != nil {
return errors.New(fmt.Sprintf(FILE_ZIP_ERROR, err))
}

_, zipping_err := exec.Command("zip", "-r", "-D", TEST_RUNNER_ZIP_FILE_NAME, "Tests iOS-Runner.app").Output()
_, zipping_err := exec.Command("zip", "-r", "-D", TEST_RUNNER_ZIP_FILE_NAME, test_runner_file_name).Output()
if zipping_err != nil {
return errors.New(fmt.Sprintf(FILE_ZIP_ERROR, zipping_err))
}
Expand Down

0 comments on commit e0ec6ee

Please sign in to comment.