1
0
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:
David Teigland 2015-03-06 09:55:24 -06:00
parent 588b3bd7a1
commit 08371a8b80

View File

@ -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