Skip to content

Commit 8e26fda

Browse files
committed
tests: add kola test for updating multiple EFIs
1 parent 9388f80 commit 8e26fda

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

Diff for: tests/kola/raid1/config.bu

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
variant: fcos
2+
version: 1.5.0
3+
boot_device:
4+
mirror:
5+
devices:
6+
- /dev/vda
7+
- /dev/vdb

Diff for: tests/kola/raid1/data/libtest.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../data/libtest.sh

Diff for: tests/kola/raid1/test.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
## kola:
3+
## # additionalDisks is only supported on qemu.
4+
## platforms: qemu
5+
## # Root reprovisioning requires at least 4GiB of memory.
6+
## minMemory: 4096
7+
## # Linear RAID is setup on these disks.
8+
## additionalDisks: ["10G"]
9+
## # This test includes a lot of disk I/O and needs a higher
10+
## # timeout value than the default.
11+
## timeoutMin: 15
12+
## description: Verify updating multiple EFIs with RAID 1 works.
13+
14+
set -xeuo pipefail
15+
16+
# shellcheck disable=SC1091
17+
. "$KOLA_EXT_DATA/libtest.sh"
18+
19+
srcdev=$(findmnt -nvr /sysroot -o SOURCE)
20+
[[ ${srcdev} == "/dev/md126" ]]
21+
22+
blktype=$(lsblk -o TYPE "${srcdev}" --noheadings)
23+
[[ ${blktype} == "raid1" ]]
24+
25+
fstype=$(findmnt -nvr /sysroot -o FSTYPE)
26+
[[ ${fstype} == "xfs" ]]
27+
ok "source is XFS on RAID1 device"
28+
29+
30+
mount -o remount,rw /boot
31+
32+
rm -f -v /boot/bootupd-state.json
33+
34+
bootupctl adopt-and-update | grep "Adopted and updated: EFI"
35+
36+
bootupctl status | grep "Component EFI"
37+
ok "bootupctl adopt-and-update supports multiple EFIs on RAID1"

0 commit comments

Comments
 (0)