Skip to content

Commit a2d5162

Browse files
mvo5achilleas-k
authored andcommitted
bib: tweak architecture setting in tests
Tiny tweak for how we set the architecture in ManifestConfig, not really necessary but avoids a extra/call an extra line.
1 parent 06c0fd4 commit a2d5162

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

bib/cmd/bootc-image-builder/image_test.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,8 @@ func findMountableSizeableFor(pt *disk.PartitionTable, needle string) (disk.Moun
375375
func TestGenPartitionTableSetsRootfsForAllFilesystemsXFS(t *testing.T) {
376376
rng := bib.CreateRand()
377377

378-
a, _ := arch.FromString("amd64")
379378
cnf := &bib.ManifestConfig{
380-
Architecture: a,
379+
Architecture: arch.ARCH_X86_64,
381380
RootFSType: "xfs",
382381
}
383382
cus := &blueprint.Customizations{
@@ -407,9 +406,8 @@ func TestGenPartitionTableSetsRootfsForAllFilesystemsXFS(t *testing.T) {
407406
func TestGenPartitionTableSetsRootfsForAllFilesystemsBtrfs(t *testing.T) {
408407
rng := bib.CreateRand()
409408

410-
a, _ := arch.FromString("amd64")
411409
cnf := &bib.ManifestConfig{
412-
Architecture: a,
410+
Architecture: arch.ARCH_X86_64,
413411
RootFSType: "btrfs",
414412
}
415413
cus := &blueprint.Customizations{}
@@ -431,9 +429,8 @@ func TestGenPartitionTableSetsRootfsForAllFilesystemsBtrfs(t *testing.T) {
431429
func TestGenPartitionTableDiskCustomizationRunsValidateLayoutConstraints(t *testing.T) {
432430
rng := bib.CreateRand()
433431

434-
a, _ := arch.FromString("amd64")
435432
cnf := &bib.ManifestConfig{
436-
Architecture: a,
433+
Architecture: arch.ARCH_X86_64,
437434
RootFSType: "xfs",
438435
}
439436
cus := &blueprint.Customizations{
@@ -653,9 +650,8 @@ func TestGenPartitionTableDiskCustomizationSizes(t *testing.T) {
653650
},
654651
} {
655652
t.Run(tc.name, func(t *testing.T) {
656-
a, _ := arch.FromString("amd64")
657653
cnf := &bib.ManifestConfig{
658-
Architecture: a,
654+
Architecture: arch.ARCH_X86_64,
659655
RootFSType: "xfs",
660656
RootfsMinsize: tc.rootfsMinSize,
661657
}

0 commit comments

Comments
 (0)