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

use rootdir instead of chroot for image release file #53

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

amritakohli
Copy link
Contributor

@amritakohli amritakohli commented Dec 20, 2024

In the function to add release file, we pass in chroot and find its root dir, which consequently requires us to initialize a chroot in its test. Since the only purpose of passing in chroot is to get its root dir, we can simplify the function (and test) by passing in the root dir directly.


Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • Code conforms to style guidelines

@amritakohli amritakohli requested a review from a team as a code owner December 20, 2024 22:44
@amritakohli amritakohli merged commit e5b97d9 into main Dec 20, 2024
7 checks passed
@amritakohli amritakohli deleted the user/amritakohli/releasefileroot branch December 20, 2024 22:57
@@ -21,23 +20,19 @@ func TestAddCustomizerRelease(t *testing.T) {
}

proposedDir := filepath.Join(tmpDir, "TestAddCustomizerRelease")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to rename proposedDir to something else.

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.

2 participants