"${output_file}.tmp" \
"/tmp/$(basename "${output_file}").tmp" \
; do
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${i}"
else
rm -f "${i}"
# Dump lease4 to output_file
run_command \
"${kea_admin}" lease-dump mysql -4 -u "${db_user}" -p "${db_password}" -n "${db_name}" \
- -d "${db_scripts_dir}" -o "${output_file}" "${@}"
+ -d "${db_scripts_dir}" -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -4 failed, expected exit code %d, actual %d"
# Compare the dump output to reference file, they should be identical
"${output_file}.tmp" \
"/tmp/$(basename "${output_file}").tmp" \
; do
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${i}"
else
rm -f "${i}"
# Dump lease4 to output_file
run_command \
"${kea_admin}" lease-dump mysql -6 -u "${db_user}" -p "${db_password}" -n "${db_name}" \
- -d "${db_scripts_dir}" -o "${output_file}" "${@}"
+ -d "${db_scripts_dir}" -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -6 failed, expected exit code %d, actual %d"
# Compare the dump output to reference file, they should be identical
"${output_file}.tmp" \
"/tmp/$(basename "${input_file}").tmp" \
; do
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${i}"
else
rm -f "${i}"
run_command \
"${kea_admin}" lease-upload mysql -4 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -i "${input_file}" "${@}"
+ -i "${input_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-upload -4 failed, expected exit code %d, actual %d"
# Dump leases.
run_command \
"${kea_admin}" lease-dump mysql -4 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -o "${output_file}" "${@}"
+ -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -4 failed, expected exit code %d, actual %d"
# Compare the initial file used for upload to the file retrieved from dump, they should be identical.
"${output_file}.tmp" \
"/tmp/$(basename "${input_file}").tmp" \
; do
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${i}"
else
rm -f "${i}"
run_command \
"${kea_admin}" lease-upload mysql -6 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -i "${input_file}" "${@}"
+ -i "${input_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-upload -6 failed, expected exit code %d, actual %d"
# Dump leases.
run_command \
"${kea_admin}" lease-dump mysql -6 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -o "${output_file}" "${@}"
+ -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -6 failed, expected exit code %d, actual %d"
# Compare the initial file used for upload to the file retrieved from dump, they should be identical.
# Clean up any test files left from prior failed runs unless -y was provided in which case
# explicitly create the file to check that it will be automatically deleted.
# files should be removed by kea-admin itself.
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${output_file}"
touch "${output_file}.tmp"
else
# Dump lease4 to output_file
run_command \
"${kea_admin}" lease-dump pgsql -4 -u "${db_user}" -p "${db_password}" -n "${db_name}" \
- -d "${db_scripts_dir}" -o "${output_file}" "${@}"
+ -d "${db_scripts_dir}" -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -4 failed, expected exit code %d, actual %d"
# Compare the dump output to reference file, they should be identical
# Clean up any test files left from prior failed runs unless -y was provided in which case
# explicitly create the file to check that it will be automatically deleted.
# files should be removed by kea-admin itself.
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${output_file}"
touch "${output_file}.tmp"
else
# Dump lease6 to output_file
run_command \
"${kea_admin}" lease-dump pgsql -6 -u "${db_user}" -p "${db_password}" -n "${db_name}" \
- -d "${db_scripts_dir}" -o "${output_file}" "${@}"
+ -d "${db_scripts_dir}" -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -6 failed, expected exit code %d, actual %d"
# Compare the dump output to reference file, they should be identical
# Clean up any test files left from prior failed runs unless -y was provided in which case
# explicitly create the file to check that it will be automatically deleted.
# files should be removed by kea-admin itself.
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${input_file}.tmp"
touch "${output_file}"
touch "${output_file}.tmp"
run_command \
"${kea_admin}" lease-upload pgsql -4 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -i "${input_file}" "${@}"
+ -i "${input_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-upload -4 failed, expected exit code %d, actual %d"
# Dump leases.
run_command \
"${kea_admin}" lease-dump pgsql -4 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -o "${output_file}" "${@}"
+ -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -4 failed, expected exit code %d, actual %d"
# Compare the initial file used for upload to the file retrieved from dump, they should be identical.
# Clean up any test files left from prior failed runs unless -y was provided in which case
# explicitly create the file to check that it will be automatically deleted.
# files should be removed by kea-admin itself.
- if printf '%s' "${@}" | grep 'y' > /dev/null; then
+ if printf '%s' "$@" | grep 'y' > /dev/null; then
touch "${input_file}.tmp"
touch "${output_file}"
touch "${output_file}.tmp"
run_command \
"${kea_admin}" lease-upload pgsql -6 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -i "${input_file}" "${@}"
+ -i "${input_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-upload -6 failed, expected exit code %d, actual %d"
# Dump leases.
run_command \
"${kea_admin}" lease-dump pgsql -6 -u "${db_user}" \
-p "${db_password}" -n "${db_name}" -d "${db_scripts_dir}" \
- -o "${output_file}" "${@}"
+ -o "${output_file}" "$@"
assert_eq 0 "${EXIT_CODE}" "kea-admin lease-dump -6 failed, expected exit code %d, actual %d"
# Compare the initial file used for upload to the file retrieved from dump, they should be identical.