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
1b72bf4f
"README.rst" did not exist on "6c4ea733e1ab552b8f6696cabdea7fb8f59582d3"
Commit
1b72bf4f
authored
7 years ago
by
Marshall Garey
Committed by
Tim Wickberg
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testsuite - add global 'reconfigure' function
Bug 4926.
parent
b882c2c8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/globals
+45
-0
45 additions, 0 deletions
testsuite/expect/globals
with
45 additions
and
0 deletions
testsuite/expect/globals
+
45
−
0
View file @
1b72bf4f
...
@@ -4237,6 +4237,51 @@ proc test_pack_step { } {
...
@@ -4237,6 +4237,51 @@ proc test_pack_step { } {
return $pack_step
return $pack_step
}
}
################################################################
#
# Proc: reconfigure
#
# Purpose: Calls scontrol reconfigure.
#
# Input (optional) cluster - The cluster to reconfigure.
# Output global exit_code - Sets exit_code to 1 on failure.
#
# Returns void
#
################################################################
proc reconfigure { {cluster ""} } {
global exit_code scontrol
if { $cluster == "" } {
spawn $scontrol reconfigure
} else {
spawn $scontrol -M$cluster reconfigure
}
expect {
-re "slurm_reconfigure error: Invalid user id" {
log_error "Invalid user id"
set exit_code 1
exp_continue
}
-re "Error|error" {
log_error "scontrol reconfigure error"
set exit_code 1
exp_continue
}
timeout {
log_error "scontrol not responding\n"
set exit_code 1
}
eof {
wait
}
}
#
# Wait for reconfigure to complete, then return.
#
sleep 5
}
proc log_error {msg} {
proc log_error {msg} {
send_user "\nFAILURE: $msg\n"
send_user "\nFAILURE: $msg\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