Skip to content

Commit 6da55bc

Browse files
committed
unit tests: make sure root partition will be mounted to /sysroot
The fips dracut module requires this when there is no separate boot partition. Signed-off-by: Coiby Xu <[email protected]>
1 parent a0596e5 commit 6da55bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/kdump-lib_spec.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,17 @@ Describe 'kdump-lib'
120120
End
121121
End
122122

123+
Describe "get_kdump_mntpoint_from_target"
124+
get_mntpoint_from_target() {
125+
echo -n "/"
126+
}
127+
128+
129+
# the fips dracut module requires this when there is no boot partition
130+
It 'should make sure root partition will be mounted to /sysroot'
131+
When call get_kdump_mntpoint_from_target "/dev/vda2"
132+
The output should equal "/sysroot"
133+
End
134+
End
135+
123136
End

0 commit comments

Comments
 (0)