Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix variable name
Signed-off-by: Takuro Sato <[email protected]>
  • Loading branch information
takuro-sato committed Sep 25, 2024
commit 6dee921a81385e3338f40e6e78b0462f3f4d854e
6 changes: 3 additions & 3 deletions ext4/tar2ext4/tar2ext4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ func calcExt4Sha256(t *testing.T, layerTar *os.File) string {

opts := []Option{ConvertWhiteout}

tmpVhdPath := filepath.Join(os.TempDir(), "test-vhd.ext4")
layerVhd, err := os.Create(tmpVhdPath)
tmpExt4Path := filepath.Join(os.TempDir(), "test.ext4")
layerVhd, err := os.Create(tmpExt4Path)
if err != nil {
t.Fatalf("failed to create output VHD: %s", err)
}
defer os.Remove(tmpVhdPath)
defer os.Remove(tmpExt4Path)

if err := Convert(layerTar, layerVhd, opts...); err != nil {
t.Fatalf("failed to convert tar to layer vhd: %s", err)
Expand Down