mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: skip system_id machineid case when not available
instead of creating a fake /etc/machine-id file on the system to test with.
This commit is contained in:
parent
e0946dca69
commit
55dd45239a
@ -27,16 +27,14 @@ vgremove $vg1
|
||||
|
||||
## machineid
|
||||
|
||||
if [ ! -e /etc/machine-id ]; then
|
||||
echo "49e0eef929d541a0b8b56128441b2d60" > /etc/machine-id
|
||||
fi
|
||||
if [ -e /etc/machine-id ]; then
|
||||
SID=$(cat /etc/machine-id)
|
||||
aux lvmconf "global/system_id_source = machineid"
|
||||
vgcreate $vg1 "$dev1"
|
||||
vgs -o+systemid $vg1
|
||||
check vg_field $vg1 systemid $SID
|
||||
vgremove $vg1
|
||||
# FIXME: remove file if created
|
||||
fi
|
||||
|
||||
## uname
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user