From: Tomek Mrugalski Date: Thu, 16 Feb 2017 10:21:33 +0000 (+0100) Subject: [3770_rebase] shell unit-tests corrected. X-Git-Tag: trac1205_base~6^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d2e6e7e387bced7a554acf02952c18c4a797618;p=thirdparty%2Fkea.git [3770_rebase] shell unit-tests corrected. --- diff --git a/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in b/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in index 6d3ecc0153..06b3e628fc 100644 --- a/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in +++ b/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" diff --git a/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in b/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in index d448ff60c8..8f155974af 100644 --- a/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in +++ b/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"