mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: aux extend lvmdbusd timeout for startup
Unclear yet what's going on here - so try waiting up 10second to see if our service will get there. Print task list if not...
This commit is contained in:
parent
faf4fe0714
commit
8ba9574ed4
@ -324,7 +324,7 @@ prepare_lvmdbusd() {
|
|||||||
|
|
||||||
echo -n "## checking lvmdbusd IS running..."
|
echo -n "## checking lvmdbusd IS running..."
|
||||||
if which dbus-send &>/dev/null ; then
|
if which dbus-send &>/dev/null ; then
|
||||||
for i in {50..0}; do
|
for i in {100..0}; do
|
||||||
dbus-send --system --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames > dbus_services
|
dbus-send --system --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames > dbus_services
|
||||||
grep -q com.redhat.lvmdbus1 dbus_services && break
|
grep -q com.redhat.lvmdbus1 dbus_services && break
|
||||||
sleep .1
|
sleep .1
|
||||||
@ -334,8 +334,9 @@ prepare_lvmdbusd() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$i" -eq 0 ] ; then
|
if [ "$i" -eq 0 ] ; then
|
||||||
printf "\nFailed to serve lvm dBus service in 5 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
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user