]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3406] Cleanup in the dynamic reconfiguration test.
authorMarcin Siodelski <marcin@isc.org>
Thu, 22 May 2014 13:07:08 +0000 (15:07 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 22 May 2014 13:07:08 +0000 (15:07 +0200)
src/bin/dhcp6/tests/dhcp6_reconfigure_test.sh

index 6d17130af0b69eee3232ddfae23007d8815621a9..8586e258da6563455e4f24471c1aa63eb96a8b0d 100755 (executable)
@@ -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.