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
70f0d960
Commit
70f0d960
authored
11 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Expand scontrol hostlsit testing
Add test for triple bracketed expression
parent
08a97f02
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/test2.20
+56
-5
56 additions, 5 deletions
testsuite/expect/test2.20
with
56 additions
and
5 deletions
testsuite/expect/test2.20
+
56
−
5
View file @
70f0d960
...
...
@@ -74,21 +74,21 @@ if {$matches != 4} {
# test double bracket hostnames
#
set matches 0
spawn $scontrol show hostnames rack\[0-1\]_blade\[
0-1
\]
spawn $scontrol show hostnames rack\[0-1\]_blade\[
2,3
\]
expect {
-re "rack0_blade
0
" {
-re "rack0_blade
2
" {
incr matches
exp_continue
}
-re "rack0_blade
1
" {
-re "rack0_blade
3
" {
incr matches
exp_continue
}
-re "rack1_blade
0
" {
-re "rack1_blade
2
" {
incr matches
exp_continue
}
-re "rack1_blade
1
" {
-re "rack1_blade
3
" {
incr matches
exp_continue
}
...
...
@@ -105,6 +105,57 @@ if {$matches != 4} {
set exit_code 1
}
#
# test triple bracket hostnames
#
set matches 0
spawn $scontrol show hostnames row\[0,1\]_rack\[2-3\]_blade\[4,5\]
expect {
-re "row0_rack2_blade4" {
incr matches
exp_continue
}
-re "row0_rack2_blade5" {
incr matches
exp_continue
}
-re "row1_rack2_blade4" {
incr matches
exp_continue
}
-re "row1_rack2_blade5" {
incr matches
exp_continue
}
-re "row0_rack3_blade4" {
incr matches
exp_continue
}
-re "row0_rack3_blade5" {
incr matches
exp_continue
}
-re "row1_rack3_blade4" {
incr matches
exp_continue
}
-re "row1_rack3_blade5" {
incr matches
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
}
eof {
wait
}
}
if {$matches != 8} {
send_user "\nFAILURE: show hostnames failure ($matches != 8)\n"
set exit_code 1
}
if {$exit_code == 0} {
send_user "\nSUCCESS\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