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
6920a31e
Commit
6920a31e
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
modify test to not choke if there are down, drained, or busy
nodes in the default partition used for testing
parent
f648c82c
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/test1.60
+20
-31
20 additions, 31 deletions
testsuite/expect/test1.60
with
20 additions
and
31 deletions
testsuite/expect/test1.60
+
20
−
31
View file @
6920a31e
...
@@ -48,35 +48,6 @@ set file_out_n_glob ""
...
@@ -48,35 +48,6 @@ set file_out_n_glob ""
print_header $test_id
print_header $test_id
#
# Determine the number of nodes available
#
set partition [default_partition]
spawn $scontrol show partition $partition
expect {
-re "not found" {
send_user "\nFAILURE: partition $partition doesn't exist\n"
exit 1
}
-re "TotalNodes=($number)" {
set node_count $expect_out(1,string)
if { $node_count < 1 } {
send_user "FAILURE: system has no nodes in default partition\n"
exit $exit_code
} elseif { $node_count > 10 } {
set node_count 10
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
exit 1
}
eof {
}
}
#
#
# Spawn a program that generates "task_id" (%t) in stdout file names
# Spawn a program that generates "task_id" (%t) in stdout file names
# and confirm they are created
# and confirm they are created
...
@@ -86,9 +57,9 @@ for {set task_id 0} {$task_id < $node_count} {incr task_id} {
...
@@ -86,9 +57,9 @@ for {set task_id 0} {$task_id < $node_count} {incr task_id} {
exec $bin_rm -f $file_out_t_glob
exec $bin_rm -f $file_out_t_glob
}
}
set timeout $max_job_delay
set timeout $max_job_delay
set srun_pid [spawn $srun -l --output=$file_out_t -N
$node_count -n $node_count
-v -t1 $bin_echo hello]
set srun_pid [spawn $srun -l --output=$file_out_t -N
1-10
-v -t1 $bin_echo hello]
expect {
expect {
-re "jobid ($number)
.*
" {
-re "jobid ($number)" {
set job_id $expect_out(1,string)
set job_id $expect_out(1,string)
exp_continue
exp_continue
}
}
...
@@ -105,6 +76,24 @@ if {$job_id == 0} {
...
@@ -105,6 +76,24 @@ if {$job_id == 0} {
send_user "\nFAILURE: job initiation failed\n"
send_user "\nFAILURE: job initiation failed\n"
exit 1
exit 1
}
}
set node_count 0
spawn $squeue -j $job_id -o "%i %D"
expect {
-re "$job_id ($number)" {
set node_count $expect_out(1,string)
exp_continue
}
eof {
wait
}
}
if {$node_count == 0} {
send_user "\nFAILURE: did not get node_count\n"
cancel_job $job_id
exit 1
}
set file_cnt 0
set file_cnt 0
for {set task_id 0} {$task_id < $node_count} {incr task_id} {
for {set task_id 0} {$task_id < $node_count} {incr task_id} {
set file_out_t_glob "test$test_id.t.$task_id.output"
set file_out_t_glob "test$test_id.t.$task_id.output"
...
...
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