@@ -375,8 +375,9 @@ func findMountableSizeableFor(pt *disk.PartitionTable, needle string) (disk.Moun
375
375
func TestGenPartitionTableSetsRootfsForAllFilesystemsXFS (t * testing.T ) {
376
376
rng := bib .CreateRand ()
377
377
378
+ a , _ := arch .FromString ("amd64" )
378
379
cnf := & bib.ManifestConfig {
379
- Architecture : arch . FromString ( "amd64" ) ,
380
+ Architecture : a ,
380
381
RootFSType : "xfs" ,
381
382
}
382
383
cus := & blueprint.Customizations {
@@ -406,8 +407,9 @@ func TestGenPartitionTableSetsRootfsForAllFilesystemsXFS(t *testing.T) {
406
407
func TestGenPartitionTableSetsRootfsForAllFilesystemsBtrfs (t * testing.T ) {
407
408
rng := bib .CreateRand ()
408
409
410
+ a , _ := arch .FromString ("amd64" )
409
411
cnf := & bib.ManifestConfig {
410
- Architecture : arch . FromString ( "amd64" ) ,
412
+ Architecture : a ,
411
413
RootFSType : "btrfs" ,
412
414
}
413
415
cus := & blueprint.Customizations {}
@@ -429,8 +431,9 @@ func TestGenPartitionTableSetsRootfsForAllFilesystemsBtrfs(t *testing.T) {
429
431
func TestGenPartitionTableDiskCustomizationRunsValidateLayoutConstraints (t * testing.T ) {
430
432
rng := bib .CreateRand ()
431
433
434
+ a , _ := arch .FromString ("amd64" )
432
435
cnf := & bib.ManifestConfig {
433
- Architecture : arch . FromString ( "amd64" ) ,
436
+ Architecture : a ,
434
437
RootFSType : "xfs" ,
435
438
}
436
439
cus := & blueprint.Customizations {
@@ -650,8 +653,9 @@ func TestGenPartitionTableDiskCustomizationSizes(t *testing.T) {
650
653
},
651
654
} {
652
655
t .Run (tc .name , func (t * testing.T ) {
656
+ a , _ := arch .FromString ("amd64" )
653
657
cnf := & bib.ManifestConfig {
654
- Architecture : arch . FromString ( "amd64" ) ,
658
+ Architecture : a ,
655
659
RootFSType : "xfs" ,
656
660
RootfsMinsize : tc .rootfsMinSize ,
657
661
}
0 commit comments