mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: fix systemid uname test
The string reported by uname -n may include characters that lvm omits from the system id (like parens, as seen on a test machine.) Check against the final system id string that lvm uses.
This commit is contained in:
parent
588b3bd7a1
commit
08371a8b80
@ -38,12 +38,13 @@ fi
|
||||
|
||||
## uname
|
||||
|
||||
SID=$(uname -n)
|
||||
if [ -n $SID ]; then
|
||||
SID1=$(uname -n)
|
||||
if [ -n $SID1 ]; then
|
||||
aux lvmconf "global/system_id_source = uname"
|
||||
SID2=$(lvm systemid | awk '{ print $3 }')
|
||||
vgcreate $vg1 "$dev1"
|
||||
vgs -o+systemid $vg1
|
||||
check vg_field $vg1 systemid $SID
|
||||
check vg_field $vg1 systemid $SID2
|
||||
vgremove $vg1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user