From: Marcin Siodelski Date: Thu, 22 May 2014 13:07:08 +0000 (+0200) Subject: [3406] Cleanup in the dynamic reconfiguration test. X-Git-Tag: trac3434_base~17^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44b8935e34c3fecd2a7af184bf41e90cf6123ca8;p=thirdparty%2Fkea.git [3406] Cleanup in the dynamic reconfiguration test. --- diff --git a/src/bin/dhcp6/tests/dhcp6_reconfigure_test.sh b/src/bin/dhcp6/tests/dhcp6_reconfigure_test.sh index 6d17130af0..8586e258da 100755 --- a/src/bin/dhcp6/tests/dhcp6_reconfigure_test.sh +++ b/src/bin/dhcp6/tests/dhcp6_reconfigure_test.sh @@ -102,7 +102,8 @@ sleep 1 # Make sure that exactly one process has been started. getpids if [ ${_GETPIDS2} -ne 1 ]; then - printf "ERROR: expected one Kea process to be started. Found %d processes started.\n" ${_GETPIDS2} + printf "ERROR: expected one Kea process to be started. Found %d " \ + "processes started.\n" ${_GETPIDS2} cleanexit 1 fi @@ -116,12 +117,13 @@ else printf "Server successfully configured\n" fi -# Reconfigure the server with SIGUP. -printf "Sending SIGUP to Kea process (pid=%s) to reconfigure the server.\n" ${_GETPIDS1} +# Reconfigure the server with SIGHUP. +printf "Sending SIGHUP to Kea process (pid=%s) to reconfigure the server.\n" \ + ${_GETPIDS1} kill -1 ${_GETPIDS1} -# Be patient. Kea may need a while to reconfigure or shut down if reconfiguration -# didn't work. +# Be patient. Kea may need a while to reconfigure or shut down +# if reconfiguration didn't work. sleep 1 # After receiving SIGHUP the server should get reconfigured and the @@ -132,7 +134,7 @@ if [ ${_GETRECONFIGS} -ne 2 ]; then printf "ERROR: server hasn't been reconfigured.\n" cleanexit 1 else - printf "Server successfully configured\n" + printf "Server successfully reconfigured\n" fi # Make sure the server is still operational.