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
5c2459a0
Commit
5c2459a0
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Fix a parsing (command output format) problem
parent
bfa43d95
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/test12.5
+98
-85
98 additions, 85 deletions
testsuite/expect/test12.5
with
98 additions
and
85 deletions
testsuite/expect/test12.5
+
98
−
85
View file @
5c2459a0
...
...
@@ -52,101 +52,114 @@ print_header $test_id
proc sacct_job { soption } {
global sacct
set exit_code 0
set matches 0
set not_support 0
send_user "sacct -$soption\n"
spawn $sacct -$soption
expect {
-re "SLURM accounting storage is disabled" {
set not_support 1
exp_continue
}
-re "AllocCPUS Account AssocID AveCPU" {
incr matches
exp_continue
}
-re "AvePages AveRSS AveVSize BlockID" {
incr matches
exp_continue
}
-re "Cluster CPUTime CPUTimeRAW Elapsed" {
incr matches
exp_continue
}
-re "Eligible End ExitCode GID" {
incr matches
exp_continue
}
-re "Group JobID JobName NodeList" {
incr matches
exp_continue
}
-re "MaxPages MaxPagesNode MaxPagesTask MaxRSS" {
incr matches
exp_continue
}
-re "MaxRSSNode MaxRSSTask MaxVSize MaxVSizeNode" {
incr matches
exp_continue
}
-re "MaxVSizeTask MinCPU MinCPUNode MinCPUTask" {
incr matches
exp_continue
}
-re "NCPUS NNodes NTasks Priority" {
incr matches
exp_continue
}
-re "Partition QOS QOSRAW ReqCPUS" {
incr matches
exp_continue
}
-re "Reserved ResvCPU ResvCPURAW Start" {
incr matches
exp_continue
}
-re "State Submit Suspended SystemCPU" {
incr matches
exp_continue
}
-re "Timelimit TotalCPU UID User" {
incr matches
exp_continue
}
-re "UserCPU WCKey WCKeyID" {
incr matches
exp_continue
}
timeout {
send_user "\nFAILURE: sacct not responding\n"
set exit_code 1
}
eof {
wait
set debug 0
set exit_code 0
set matches 0
set not_support 0
send_user "sacct $soption\n"
spawn $sacct $soption
expect {
-re "SLURM accounting storage is disabled" {
set not_support 1
exp_continue
}
-re "AllocCPUS Account AssocID AveCPU" {
if {$debug} {send_user "\nmatch1\n"}
incr matches
exp_continue
}
-re "AvePages AveRSS AveVMSize BlockID" {
if {$debug} {send_user "\nmatch2\n"}
incr matches
exp_continue
}
-re "Cluster CPUTime CPUTimeRAW Elapsed" {
if {$debug} {send_user "\nmatch3\n"}
incr matches
exp_continue
}
-re "Eligible End ExitCode GID" {
if {$debug} {send_user "\nmatch4\n"}
incr matches
exp_continue
}
-re "Group JobID JobName NodeList" {
if {$debug} {send_user "\nmatch5\n"}
incr matches
exp_continue
}
-re "MaxPages MaxPagesNode MaxPagesTask MaxRSS" {
if {$debug} {send_user "\nmatch6\n"}
incr matches
exp_continue
}
-re "MaxRSSNode MaxRSSTask MaxVMSize MaxVMSizeNode" {
if {$debug} {send_user "\nmatch7\n"}
incr matches
exp_continue
}
-re "MaxVMSizeTask MinCPU MinCPUNode MinCPUTask" {
if {$debug} {send_user "\nmatch8\n"}
incr matches
exp_continue
}
-re "NCPUS NNodes NTasks Priority" {
if {$debug} {send_user "\nmatch9\n"}
incr matches
exp_continue
}
-re "Partition QOS QOSRAW ReqCPUS" {
if {$debug} {send_user "\nmatch10\n"}
incr matches
exp_continue
}
-re "Reserved ResvCPU ResvCPURAW Start" {
if {$debug} {send_user "\nmatch11\n"}
incr matches
exp_continue
}
-re "State Submit Suspended SystemCPU" {
if {$debug} {send_user "\nmatch12\n"}
incr matches
exp_continue
}
-re "Timelimit TotalCPU UID User" {
if {$debug} {send_user "\nmatch13\n"}
incr matches
exp_continue
}
-re "UserCPU WCKey WCKeyID" {
if {$debug} {send_user "\nmatch14\n"}
incr matches
exp_continue
}
timeout {
send_user "\nFAILURE: sacct not responding\n"
set exit_code 1
}
eof {
wait
}
}
}
if {$not_support != 0} {
send_user "\nWARNING: can not test without accounting enabled\n"
exit 0
}
if {$matches != 14} {
send_user "\nFAILURE: sacct -$soption failed ($matches)\n"
set exit_code 1
}
if {$not_support != 0} {
send_user "\nWARNING: can not test without accounting enabled\n"
exit 0
}
return $matches
}
################################################################
set matches [sacct_job -helpformat]
set matches [sacct_job
-
-helpformat]
if {$matches != 14} {
send_user "\nFAILURE: sacct --
allusers
failed ($matches)\n"
send_user "\nFAILURE: sacct --
helpformat
failed ($matches)\n"
set exit_code 1
}
set matches [sacct_job e]
set matches [sacct_job
-
e]
if {$matches != 14} {
send_user "\nFAILURE: sacct -
a
failed ($matches)\n"
send_user "\nFAILURE: sacct -
e
failed ($matches)\n"
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