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
|
grep -q com.redhat.lvmdbus1 dbus_services && break
|
||||||
sleep .1
|
sleep .1
|
||||||
done
|
done
|
||||||
else
|
|
||||||
sleep 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$i" -eq 0 ] ; then
|
if [ "$i" -eq 0 ] ; then
|
||||||
printf "\nFailed to serve lvm dBus service in 10 seconds.\n"
|
printf "\nFailed to serve lvm dBus service in 10 seconds.\n"
|
||||||
sed -e "s,^,## DBUS_SERVICES: ," dbus_services
|
sed -e "s,^,## DBUS_SERVICES: ," dbus_services
|
||||||
ps aux
|
ps aux
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
sleep 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
comm=
|
comm=
|
||||||
# TODO: Is there a better check than wait 1 second and check pid?
|
# TODO: Is there a better check than wait 1 second and check pid?
|
||||||
|
Loading…
Reference in New Issue
Block a user