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