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
e341101a
Commit
e341101a
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
more modifications
parent
4bd82b7b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testsuite/expect/test4.12
+6
-9
6 additions, 9 deletions
testsuite/expect/test4.12
with
6 additions
and
9 deletions
testsuite/expect/test4.12
+
6
−
9
View file @
e341101a
...
@@ -93,7 +93,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } {
...
@@ -93,7 +93,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } {
set found 0
set found 0
set rc 0
set rc 0
send "$sinfo -o '%C %A %N' -h -n $node
\n"
send "$sinfo -o '
\
%C
\
%A
\
%N' -h -n $node\n"
expect {
expect {
-re "($number)(k?).($number)(k?).($number)(k?).($number)(k?) ($number)(k?).($number)(k?) $node" {
-re "($number)(k?).($number)(k?).($number)(k?).($number)(k?) ($number)(k?).($number)(k?) $node" {
set found 1
set found 1
...
@@ -131,7 +131,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } {
...
@@ -131,7 +131,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } {
-re $prompt {
-re $prompt {
}
}
timeout {
timeout {
send_user "\nFAILURE: s
control
not responding\n"
send_user "\nFAILURE: s
info
not responding\n"
slow_kill $mypid
slow_kill $mypid
return 1
return 1
}
}
...
@@ -164,7 +164,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
...
@@ -164,7 +164,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
}
}
set idle_nodes [expr $total_nodes - $alloc_nodes]
set idle_nodes [expr $total_nodes - $alloc_nodes]
send "$sinfo -o '%t %D %N' -h -n $node
\n
"
send "$sinfo -o '
\
%t
\
%D
\
%N' -h -n $node
\r
"
expect {
expect {
-re "alloc ($number)(k?) $node" {
-re "alloc ($number)(k?) $node" {
set num_alloc $expect_out(1,string)
set num_alloc $expect_out(1,string)
...
@@ -183,7 +183,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
...
@@ -183,7 +183,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
-re $prompt {
-re $prompt {
}
}
timeout {
timeout {
send_user "\nFAILURE: s
control
not responding\n"
send_user "\nFAILURE: s
info
not responding\n"
slow_kill $mypid
slow_kill $mypid
return 1
return 1
}
}
...
@@ -198,8 +198,6 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
...
@@ -198,8 +198,6 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
} elseif { $num_idle != $idle_nodes } {
} elseif { $num_idle != $idle_nodes } {
send_user "\nFAILURE: sinfo 2 idle nodes wrong, got $num_idle but needed $idle_nodes\n"
send_user "\nFAILURE: sinfo 2 idle nodes wrong, got $num_idle but needed $idle_nodes\n"
set rc 1
set rc 1
} else {
send_user "SUCCESS\n"
}
}
return $rc
return $rc
...
@@ -242,6 +240,8 @@ proc allocate_and_quit { node proc_cnt total_procs } {
...
@@ -242,6 +240,8 @@ proc allocate_and_quit { node proc_cnt total_procs } {
send "exit\n"
send "exit\n"
return 1
return 1
}
}
send "exit\n"
exp_continue
}
}
-re "Unable to contact" {
-re "Unable to contact" {
...
@@ -261,9 +261,6 @@ proc allocate_and_quit { node proc_cnt total_procs } {
...
@@ -261,9 +261,6 @@ proc allocate_and_quit { node proc_cnt total_procs } {
}
}
}
}
if {$job_id} {
send "exit\n"
}
return $rc
return $rc
}
}
...
...
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