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
cf742af3
Commit
cf742af3
authored
10 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Disable a test based upon configuration
Disable a partition test if JobSubmitPlugins=all_partitions
parent
3e2cb7c6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/expect/globals
+37
-0
37 additions, 0 deletions
testsuite/expect/globals
testsuite/expect/test5.6
+5
-0
5 additions, 0 deletions
testsuite/expect/test5.6
testsuite/expect/test6.10
+6
-2
6 additions, 2 deletions
testsuite/expect/test6.10
with
48 additions
and
2 deletions
testsuite/expect/globals
+
37
−
0
View file @
cf742af3
...
...
@@ -2995,6 +2995,43 @@ proc slurmctld_plug_stack_nonstop { } {
return $nonstop_enforce
}
################################################################
#
# Proc: job_submit_all_partitions
#
# Purpose: Use scontrol to determine if the JobSubmitPlugins
# includes "all_partitions".
#
# Returns: 1 if the value is set to nonstop.
#
################################################################
proc job_submit_all_partitions { } {
global scontrol alpha_numeric_comma
log_user 0
set all_partitions 0
set scon_pid [spawn -noecho $scontrol show config]
expect {
-re "JobSubmitPlugins *= ($alpha_numeric_comma)" {
if {[string first $expect_out(1,string) "all_partitions"] != -1} {
set all_partitions 1
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
slow_kill $scon_pid
set exit_code 1
}
eof {
wait
}
}
log_user 1
return $all_partitions
}
################################################################
#
# Proc: wait_for_node
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test5.6
+
5
−
0
View file @
cf742af3
...
...
@@ -43,6 +43,11 @@ set job_name2 "test$test_id.job2"
print_header $test_id
if {[job_submit_all_partitions] != 0} {
send_user "\nWARNING: This test is incompatable with JobSubmitPlugins=all_partitions\n"
exit 0
}
if {[test_launch_poe]} {
set step_id 1
} else {
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test6.10
+
6
−
2
View file @
cf742af3
...
...
@@ -44,6 +44,11 @@ set job_id 0
print_header $test_id
if {[job_submit_all_partitions] != 0} {
send_user "\nWARNING: This test is incompatable with JobSubmitPlugins=all_partitions\n"
exit 0
}
#
# Execute 'id' to determine my login name
#
...
...
@@ -93,7 +98,6 @@ if {$job_id == 0} {
send_user "\nFAILURE: batch submit failure\n"
exit 1
}
exec $bin_rm -f $file_in
#
# Identify this job's parition
...
...
@@ -186,13 +190,13 @@ expect {
wait
}
}
if {$matches != 0} {
send_user "\nFAILURE: scancel user filter failed\n"
set exit_code 1
}
if {$exit_code == 0} {
exec $bin_rm -f $file_in
send_user "\nSUCCESS\n"
}
exit $exit_code
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