Browse Source

[3406] Cleanup in the dynamic reconfiguration test.

Marcin Siodelski 11 years ago
parent
commit
44b8935e34
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src/bin/dhcp6/tests/dhcp6_reconfigure_test.sh

+ 8 - 6
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.