Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
03d100b0
Commit
03d100b0
authored
8 years ago
by
Alejandro Sanchez
Committed by
Danny Auble
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/test17.51
+10
-8
10 additions, 8 deletions
testsuite/expect/test17.51
testsuite/expect/test17.52
+10
-8
10 additions, 8 deletions
testsuite/expect/test17.52
with
20 additions
and
16 deletions
testsuite/expect/test17.51
+
10
−
8
View file @
03d100b0
...
@@ -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*=/I
d $config_path/slurm.conf
exec $bin_sed -i /
mcs/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*MCSParameters\s*=/I
d $config_path/slurm.conf
exec $bin_sed -i /PrivateData
/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*
PrivateData
\s*=/I
d $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/user >> $config_path/slurm.conf
exec $bin_echo
-e "\n
MCSPlugin=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*=/I
d $config_path/slurm.conf
exec $bin_sed -i /
mcs/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*MCSParameters\s*=/I
d $config_path/slurm.conf
exec $bin_sed -i /PrivateData
/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*
PrivateData
\s*=/I
d $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/user >> $config_path/slurm.conf
exec $bin_echo
-e "\n
MCSPlugin=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"
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test17.52
+
10
−
8
View file @
03d100b0
...
@@ -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*=/I
d $config_path/slurm.conf
exec $bin_sed -i /
mcs/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*MCSParameters\s*=/I
d $config_path/slurm.conf
exec $bin_sed -i /PrivateData
/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*
PrivateData
\s*=/I
d $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/group >> $config_path/slurm.conf
exec $bin_echo
-e "\n
MCSPlugin=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*=/I
d $config_path/slurm.conf
exec $bin_sed -i /
mcs/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*MCSParameters\s*=/I
d $config_path/slurm.conf
exec $bin_sed -i /PrivateData
/
d $config_path/slurm.conf
exec $bin_sed -i /
^\s*
PrivateData
\s*=/I
d $config_path/slurm.conf
exec $bin_echo MCSPlugin=mcs/group >> $config_path/slurm.conf
exec $bin_echo
-e "\n
MCSPlugin=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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment