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
19b834cf
Commit
19b834cf
authored
8 years ago
by
Brian Christiansen
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead test functions.
They should have been removed in
63b50688
parent
a4d9998f
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/test37.4
+0
-81
0 additions, 81 deletions
testsuite/expect/test37.4
with
0 additions
and
81 deletions
testsuite/expect/test37.4
+
0
−
81
View file @
19b834cf
...
@@ -70,87 +70,6 @@ if { [string compare [check_accounting_admin_level] "Administrator"] } {
...
@@ -70,87 +70,6 @@ if { [string compare [check_accounting_admin_level] "Administrator"] } {
exit 0
exit 0
}
}
proc modify {job_id constraint reg_ex error_message} {
global fedc1 fed_slurm_base bin_sleep
set my_scontrol "${fed_slurm_base}/$fedc1/bin/scontrol"
set matches 0
spawn $my_scontrol update jobid=$job_id clusterfeatures=$constraint
$bin_sleep 3
expect {
-re "$reg_ex" {
incr matches
}
timeout {
log_error "scontrol not responding"
end_it 1
}
eof {
wait
}
}
if {![string match "empty" $reg_ex] && $matches != 1} {
return
log_error "scontrol not responding"
end_it 1
}
}
proc sbatch {my_sbatch script constraint args} {
global number bin_sleep
set job_id 0
set command "$my_sbatch -N10 --exclusive --output=/dev/null \
--error=/dev/null -t3 --wrap $script --cluster-constraint=$constraint"
if {$args ne ""} {
append command " $args"
}
spawn {*}$command
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
}
timeout {
log_error "sbatch not responding"
end_it 1
}
eof {
wait
}
}
if {$job_id == 0} {
log_error "batch submit failure"
end_it 1
}
$bin_sleep 3
return $job_id
}
proc verify {fed job_id pattern error_message} {
global fed_slurm_base
set matches 0
set my_squeue "${fed_slurm_base}/$fed/bin/squeue"
spawn $my_squeue -j $job_id --noheader \
-Ostatecompact:.5,siblingsviable:.20,siblingsactive:.20
expect {
-re "\\s+$pattern" {
incr matches
}
eof {
wait
}
}
if {$matches != 1} {
log_error "$error_message"
end_it 1
}
}
proc cancel_all_jobs { } {
proc cancel_all_jobs { } {
global scancel user_name fedc1 fedc2 fedc3
global scancel user_name fedc1 fedc2 fedc3
...
...
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