mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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..."
|
||||
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
|
||||
grep -q com.redhat.lvmdbus1 dbus_services && break
|
||||
sleep .1
|
||||
@ -334,8 +334,9 @@ prepare_lvmdbusd() {
|
||||
fi
|
||||
|
||||
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
|
||||
ps aux
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user