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
bb54a2e9
Commit
bb54a2e9
authored
14 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
fix for test3.3 to check for correct things when printing out the node info
parent
8c17aa69
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/test3.3
+2
-12
2 additions, 12 deletions
testsuite/expect/test3.3
with
2 additions
and
12 deletions
testsuite/expect/test3.3
+
2
−
12
View file @
bb54a2e9
...
@@ -36,8 +36,6 @@ set test_id "3.3"
...
@@ -36,8 +36,6 @@ set test_id "3.3"
set authorized 1
set authorized 1
set exit_code 0
set exit_code 0
set node_name ""
set node_name ""
set node_old_state ""
set node_new_state ""
set read_state ""
set read_state ""
print_header $test_id
print_header $test_id
...
@@ -47,21 +45,13 @@ print_header $test_id
...
@@ -47,21 +45,13 @@ print_header $test_id
#
#
spawn $scontrol show node
spawn $scontrol show node
expect {
expect {
-re "NodeName=($alpha_numeric_under)
State=IDLE
" {
-re "NodeName=($alpha_numeric_under) " {
if {[string compare $node_name ""] == 0} {
if {[string compare $node_name ""] == 0} {
set node_name $expect_out(1,string)
set node_name $expect_out(1,string)
set node_old_state "IDLE"
}
}
exp_continue
exp_continue
}
}
-re "NodeName=($alpha_numeric_under) State=ALLOCATED " {
timeout {
if {[string compare $node_name ""] == 0} {
set node_name $expect_out(1,string)
set node_old_state "ALLOCATED"
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
set exit_code 1
}
}
...
...
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