mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
test: Prevent incorrect value propagating into test
In case dbus-send is not present previous random value of i was tested.
This commit is contained in:
parent
25638f6a87
commit
60cd279f96
@ -330,16 +330,16 @@ prepare_lvmdbusd() {
|
||||
grep -q com.redhat.lvmdbus1 dbus_services && break
|
||||
sleep .1
|
||||
done
|
||||
else
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
if [ "$i" -eq 0 ] ; then
|
||||
printf "\nFailed to serve lvm dBus service in 10 seconds.\n"
|
||||
sed -e "s,^,## DBUS_SERVICES: ," dbus_services
|
||||
ps aux
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
|
||||
comm=
|
||||
# TODO: Is there a better check than wait 1 second and check pid?
|
||||
|
Loading…
Reference in New Issue
Block a user