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

test_utils: utility for getting a test directory #18456

Merged
merged 1 commit into from
May 14, 2024

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented May 13, 2024

This adds a utility method to get the pathname for a directory that should be uniquely used by a single test case iteration.

I intend on using this for unit testing the new storage layer, as it helps prevent failed or crashed tests from interfering with other tests (e.g. some tests may expect an empty directory, which may not be the case if tests reuse the same directory but crash before cleaning up).

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • none

This adds a utility method to get the pathname for a directory that
should be uniquely used by a single test case iteration.
@andrwng andrwng merged commit fbf240f into redpanda-data:dev May 14, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants