Skip to content
Snippets Groups Projects
Commit 03d100b0 authored by Alejandro Sanchez's avatar Alejandro Sanchez Committed by Danny Auble
Browse files

testsuite - Fix MCS tests 17.51 and 17.52 to safely modify slurm.conf

parent 5f1393d3
No related branches found
No related tags found
No related merge requests found
...@@ -121,14 +121,15 @@ send_user "\n---Checking sbatch uses mcs-label only for some jobs (ondemand mode ...@@ -121,14 +121,15 @@ send_user "\n---Checking sbatch uses mcs-label only for some jobs (ondemand mode
# #
# Change the slurm.conf MCSparameters and MCSPlugin # Change the slurm.conf MCSparameters and MCSPlugin
# #
exec $bin_sed -i /MCS/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSPlugin\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /mcs/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSParameters\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /PrivateData/d $config_path/slurm.conf exec $bin_sed -i /^\s*PrivateData\s*=/Id $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/user >> $config_path/slurm.conf exec $bin_echo -e "\nMCSPlugin=mcs/user" >> $config_path/slurm.conf
exec $bin_echo MCSParameters=ondemand,select,privatedata >> $config_path/slurm.conf exec $bin_echo MCSParameters=ondemand,select,privatedata >> $config_path/slurm.conf
exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf
update_conf update_conf
# #
# verify slurm conf parameters MCS # verify slurm conf parameters MCS
# #
...@@ -341,14 +342,15 @@ cancel_job $job_id ...@@ -341,14 +342,15 @@ cancel_job $job_id
# test with enforced # test with enforced
# #
send_user "\n---Checking sbatch uses mcs-label with all jobs (enforced mode)---\n" send_user "\n---Checking sbatch uses mcs-label with all jobs (enforced mode)---\n"
exec $bin_sed -i /MCS/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSPlugin\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /mcs/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSParameters\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /PrivateData/d $config_path/slurm.conf exec $bin_sed -i /^\s*PrivateData\s*=/Id $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/user >> $config_path/slurm.conf exec $bin_echo -e "\nMCSPlugin=mcs/user" >> $config_path/slurm.conf
exec $bin_echo MCSParameters=enforced,noselect,privatedata >> $config_path/slurm.conf exec $bin_echo MCSParameters=enforced,noselect,privatedata >> $config_path/slurm.conf
exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf
update_conf update_conf
###### Check that sbatch uses mcs-label=user ###### ###### Check that sbatch uses mcs-label=user ######
send_user "\n---Checking sbatch uses mcs-label=user---\n" send_user "\n---Checking sbatch uses mcs-label=user---\n"
......
...@@ -136,14 +136,15 @@ expect { ...@@ -136,14 +136,15 @@ expect {
} }
} }
exec $bin_sed -i /MCS/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSPlugin\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /mcs/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSParameters\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /PrivateData/d $config_path/slurm.conf exec $bin_sed -i /^\s*PrivateData\s*=/Id $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/group >> $config_path/slurm.conf exec $bin_echo -e "\nMCSPlugin=mcs/group" >> $config_path/slurm.conf
exec $bin_echo MCSParameters=ondemand,select,privatedata:$groups_name >> $config_path/slurm.conf exec $bin_echo MCSParameters=ondemand,select,privatedata:$groups_name >> $config_path/slurm.conf
exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf
update_conf update_conf
# #
# verify slurm conf parameters MCS # verify slurm conf parameters MCS
# #
...@@ -358,14 +359,15 @@ cancel_job $job_id ...@@ -358,14 +359,15 @@ cancel_job $job_id
# test with enforced # test with enforced
# #
send_user "\n---Checking sbatch uses mcs-label with all jobs (enforced mode)---\n" send_user "\n---Checking sbatch uses mcs-label with all jobs (enforced mode)---\n"
exec $bin_sed -i /MCS/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSPlugin\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /mcs/d $config_path/slurm.conf exec $bin_sed -i /^\s*MCSParameters\s*=/Id $config_path/slurm.conf
exec $bin_sed -i /PrivateData/d $config_path/slurm.conf exec $bin_sed -i /^\s*PrivateData\s*=/Id $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/group >> $config_path/slurm.conf exec $bin_echo -e "\nMCSPlugin=mcs/group" >> $config_path/slurm.conf
exec $bin_echo MCSParameters=enforced,noselect,privatedata:$groups_name >> $config_path/slurm.conf exec $bin_echo MCSParameters=enforced,noselect,privatedata:$groups_name >> $config_path/slurm.conf
exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf exec $bin_echo PrivateData=jobs,nodes >> $config_path/slurm.conf
update_conf update_conf
###### Check that sbatch uses mcs-label=group ###### ###### Check that sbatch uses mcs-label=group ######
send_user "\n---Checking sbatch uses mcs-label=group---\n" send_user "\n---Checking sbatch uses mcs-label=group---\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment