@@ -13,8 +13,8 @@ import (
1313
1414 "github.com/microsoft/azurelinux/toolkit/tools/imagecustomizerapi"
1515 "github.com/microsoft/azurelinux/toolkit/tools/internal/file"
16- "github.com/microsoft/azurelinux/toolkit/tools/internal/logger"
1716 "github.com/microsoft/azurelinux/toolkit/tools/internal/initrdutils"
17+ "github.com/microsoft/azurelinux/toolkit/tools/internal/logger"
1818 "github.com/microsoft/azurelinux/toolkit/tools/internal/safeloopback"
1919 "github.com/microsoft/azurelinux/toolkit/tools/internal/safemount"
2020 "github.com/microsoft/azurelinux/toolkit/tools/internal/tarutils"
@@ -184,15 +184,15 @@ func VerifyFullOSContents(t *testing.T, testTempDir, artifactsPath, outputFormat
184184 return
185185 }
186186 defer isoImageLoopDevice .Close ()
187-
187+
188188 isoMountDir := filepath .Join (testTempDir , "bootstrap-iso-mount" )
189189 isoImageMount , err := safemount .NewMount (isoImageLoopDevice .DevicePath (), isoMountDir ,
190190 "iso9660" /*fstype*/ , unix .MS_RDONLY /*flags*/ , "" /*data*/ , true /*makeAndDelete*/ )
191191 if ! assert .NoError (t , err ) {
192192 return
193193 }
194194 defer isoImageMount .Close ()
195-
195+
196196 fullOSImagePath = filepath .Join (isoMountDir , liveOSDir , liveOSImage )
197197 }
198198
@@ -208,16 +208,16 @@ func VerifyFullOSContents(t *testing.T, testTempDir, artifactsPath, outputFormat
208208 if ! assert .NoError (t , err ) {
209209 return
210210 }
211- defer squashfsMount .Close ()
211+ defer squashfsMount .Close ()
212212 case imagecustomizerapi .InitramfsImageTypeFullOS :
213213 fullOSImagePath := filepath .Join (artifactsPath , "boot/initrd.img" )
214214 // Expand initrd to a folder
215215 err := initrdutils .CreateFolderFromInitrdImage (fullOSImagePath , fullOsDir )
216216 if ! assert .NoError (t , err ) {
217217 return
218218 }
219- defer os .RemoveAll (fullOsDir )
220- }
219+ defer os .RemoveAll (fullOsDir )
220+ }
221221
222222 // Check that each file is in the root file system.
223223 for _ , additionalFile := range osConfig .AdditionalFiles {
@@ -382,7 +382,7 @@ func TestCustomizeImageLiveOSInitramfs2(t *testing.T) {
382382 if ! assert .NoError (t , err ) {
383383 return
384384 }
385-
385+
386386 ValidateIsoContent (t , configB , testTempDir , imagecustomizerapi .InitramfsImageTypeFullOS , outImageFilePath )
387387
388388 // - ISO {full-os} to ISO {bootstrap}, with selinux enforcing
@@ -395,7 +395,7 @@ func TestCustomizeImageLiveOSInitramfs2(t *testing.T) {
395395 return
396396 }
397397
398- ValidateIsoContent (t , configC , testTempDir , imagecustomizerapi .InitramfsImageTypeBootstrap , outImageFilePath )
398+ ValidateIsoContent (t , configC , testTempDir , imagecustomizerapi .InitramfsImageTypeBootstrap , outImageFilePath )
399399}
400400
401401// Tests:
0 commit comments