Browse Source

[3770_rebase] shell unit-tests corrected.

Tomek Mrugalski 8 years ago
parent
commit
6d2e6e7e38

+ 2 - 2
src/bin/dhcp4/tests/dhcp4_process_tests.sh.in

@@ -198,8 +198,8 @@ syntax_check_test() {
     # Create correct configuration file.
     create_config "${CONFIG}"
     # Check it
-    printf "Running command %s.\n" "\"${bin_path}/${bin} -t -c ${CFG_FILE}\""
-    ${bin_path}/${bin} -t -c ${CFG_FILE}
+    printf "Running command %s.\n" "\"${bin_path}/${bin} -t ${CFG_FILE}\""
+    ${bin_path}/${bin} -t ${CFG_FILE}
     exit_code=$?
     if [ ${exit_code} -ne $EXP_CODE ]; then
         printf "ERROR: expected exit code ${EXP_CODE}, got ${exit_code}\n"

+ 2 - 2
src/bin/dhcp6/tests/dhcp6_process_tests.sh.in

@@ -197,8 +197,8 @@ syntax_check_test() {
     # Create correct configuration file.
     create_config "${CONFIG}"
     # Check it
-    printf "Running command %s.\n" "\"${bin_path}/${bin} -t -c ${CFG_FILE}\""
-    ${bin_path}/${bin} -t -c ${CFG_FILE}
+    printf "Running command %s.\n" "\"${bin_path}/${bin} -t ${CFG_FILE}\""
+    ${bin_path}/${bin} -t ${CFG_FILE}
     exit_code=$?
     if [ ${exit_code} -ne $EXP_CODE ]; then
         printf "ERROR: expected exit code $EXP_CODE, got ${exit_code}\n"