Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exe-on-path-test #101

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Exe-on-path-test #101

wants to merge 2 commits into from

Conversation

ryan-gang
Copy link
Collaborator

  • Introduced a new CreateDirectory function to encapsulate directory creation logic, enhancing error handling and code reuse.
  • Updated getRandomDirectory and getShortRandomDirectory functions to utilize CreateDirectory for improved clarity and consistency.
  • Renamed writeFile to WriteFile for better adherence to Go naming conventions and added a new ChangeFilePermissions function for managing file permissions.
  • Enhanced cleanup logic in getRandomDirectory to remove the grandparent directory, ensuring proper resource management during tests.

…etup

- Added functionality to create random directories and files for testing within the testType2 function.
- Integrated random elements from the tester-utils package to generate unique directory names.
- Updated the PATH environment variable to include newly created directories, improving test isolation.
- Implemented commands to create files and change permissions, enhancing the robustness of the shell tests.
- Improved logging for better visibility during test execution.
- Introduced a new CreateDirectory function to encapsulate directory creation logic, enhancing error handling and code reuse.
- Updated getRandomDirectory and getShortRandomDirectory functions to utilize CreateDirectory for improved clarity and consistency.
- Renamed writeFile to WriteFile for better adherence to Go naming conventions and added a new ChangeFilePermissions function for managing file permissions.
- Enhanced cleanup logic in getRandomDirectory to remove the grandparent directory, ensuring proper resource management during tests.
@ryan-gang ryan-gang self-assigned this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant