mirror of
https://github.com/schoebel/mars
synced 2024-12-29 18:32:47 +00:00
test_suite: don't use string parameters without ""
This commit is contained in:
parent
a95b2c366c
commit
36c5ef5d86
@ -114,10 +114,11 @@ function install_mars_update_bootloader_on_target_hosts
|
|||||||
case "$boot_loader" in # ((
|
case "$boot_loader" in # ((
|
||||||
lilo) label_name="${main_host_bootloader_label_list[$host]}"
|
lilo) label_name="${main_host_bootloader_label_list[$host]}"
|
||||||
lib_vmsg "checking label $label_name on host $host"
|
lib_vmsg "checking label $label_name on host $host"
|
||||||
lib_remote_idfile $host lilo -I $label_name || lib_exit 1
|
lib_remote_idfile $host lilo -I "$label_name" || lib_exit 1
|
||||||
lib_vmsg " calling lilo on $host"
|
lib_vmsg " calling lilo on $host"
|
||||||
lib_remote_idfile $host lilo || lib_exit 1
|
lib_remote_idfile $host lilo || lib_exit 1
|
||||||
install_mars_activate_kernel_to_boot_with_lilo $host $label_name
|
install_mars_activate_kernel_to_boot_with_lilo $host \
|
||||||
|
"$label_name"
|
||||||
;;
|
;;
|
||||||
*) echo "hint: for bootloader $boot_loader on $host no action defined"
|
*) echo "hint: for bootloader $boot_loader on $host no action defined"
|
||||||
;;
|
;;
|
||||||
@ -127,9 +128,9 @@ function install_mars_update_bootloader_on_target_hosts
|
|||||||
|
|
||||||
function install_mars_activate_kernel_to_boot_with_lilo
|
function install_mars_activate_kernel_to_boot_with_lilo
|
||||||
{
|
{
|
||||||
local host=$1 label_name=$2
|
local host=$1 label_name="$2"
|
||||||
lib_vmsg " calling lilo -R $label_name on $host"
|
lib_vmsg " calling lilo -R $label_name on $host"
|
||||||
lib_remote_idfile $host lilo -R $label_name || lib_exit 1
|
lib_remote_idfile $host lilo -R "$label_name" || lib_exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_mars_finish
|
function install_mars_finish
|
||||||
|
@ -69,7 +69,7 @@ function remote_dev_run
|
|||||||
local mars_dev=$(lv_config_get_lv_device ${cluster_mars_dir_lv_name_list[$secondary_host]})
|
local mars_dev=$(lv_config_get_lv_device ${cluster_mars_dir_lv_name_list[$secondary_host]})
|
||||||
crash_reboot $secondary_host "" $mars_dev $crash_maxtime_reboot \
|
crash_reboot $secondary_host "" $mars_dev $crash_maxtime_reboot \
|
||||||
$crash_maxtime_to_become_unreachable \
|
$crash_maxtime_to_become_unreachable \
|
||||||
$boot_label_name
|
"$boot_label_name"
|
||||||
remote_dev_remove_magic_links $secondary_host
|
remote_dev_remove_magic_links $secondary_host
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ function crash_run
|
|||||||
$crash_aio_sync_mode
|
$crash_aio_sync_mode
|
||||||
crash_reboot $primary_host $secondary_host $mars_dev $crash_maxtime_reboot \
|
crash_reboot $primary_host $secondary_host $mars_dev $crash_maxtime_reboot \
|
||||||
$crash_maxtime_to_become_unreachable \
|
$crash_maxtime_to_become_unreachable \
|
||||||
$boot_label_name
|
"$boot_label_name"
|
||||||
|
|
||||||
lib_linktree_print_linktree $primary_host
|
lib_linktree_print_linktree $primary_host
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ function crash_reboot
|
|||||||
[ $# -eq 6 ] || lib_exit 1 "wrong number $# of arguments (args = $*)"
|
[ $# -eq 6 ] || lib_exit 1 "wrong number $# of arguments (args = $*)"
|
||||||
local primary_host=$1 secondary_host=$2 mars_dev=$3 maxtime_to_reboot=$4
|
local primary_host=$1 secondary_host=$2 mars_dev=$3 maxtime_to_reboot=$4
|
||||||
local maxtime_to_become_unreachable=$5
|
local maxtime_to_become_unreachable=$5
|
||||||
local boot_label_name=$6
|
local boot_label_name="$6"
|
||||||
local pids_to_kill host
|
local pids_to_kill host
|
||||||
|
|
||||||
if [ -z "$crash_print_linktree_during_reboot" ]; then
|
if [ -z "$crash_print_linktree_during_reboot" ]; then
|
||||||
@ -136,7 +136,7 @@ function crash_reboot
|
|||||||
fi
|
fi
|
||||||
if [ "${main_host_bootloader_list[$primary_host]}" = "lilo" ]; then
|
if [ "${main_host_bootloader_list[$primary_host]}" = "lilo" ]; then
|
||||||
install_mars_activate_kernel_to_boot_with_lilo $primary_host \
|
install_mars_activate_kernel_to_boot_with_lilo $primary_host \
|
||||||
$boot_label_name
|
"$boot_label_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
main_error_recovery_functions["lib_rw_stop_scripts"]=
|
main_error_recovery_functions["lib_rw_stop_scripts"]=
|
||||||
|
Loading…
Reference in New Issue
Block a user