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
d9422a7f
Commit
d9422a7f
authored
15 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
modify test19.5 due to possible failure for power save mode.
add global test_power_save
parent
66aecb69
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/expect/globals
+32
-0
32 additions, 0 deletions
testsuite/expect/globals
testsuite/expect/test19.5
+6
-2
6 additions, 2 deletions
testsuite/expect/test19.5
with
38 additions
and
2 deletions
testsuite/expect/globals
+
32
−
0
View file @
d9422a7f
...
@@ -637,6 +637,38 @@ proc test_assoc_enforced { } {
...
@@ -637,6 +637,38 @@ proc test_assoc_enforced { } {
return $assoc_enforced
return $assoc_enforced
}
}
################################################################
#
# Proc: test_power_save
#
# Return 1 if power save mode is enabled, 0 otherwise
#
################################################################
proc test_power_save { } {
global scontrol number
log_user 0
set resume_rate 0
spawn $scontrol show config
expect {
-re "ResumeTimeout *= ($number)" {
set resume_rate $expect_out(1,string)
exp_continue
}
eof {
wait
}
}
log_user 1
if {$resume_rate == 0} {
set power_save 0
} else {
set power_save 1
}
return $power_save
}
################################################################
################################################################
#
#
# Proc: slurmd_user_root
# Proc: slurmd_user_root
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test19.5
+
6
−
2
View file @
d9422a7f
...
@@ -221,8 +221,12 @@ if {[wait_for_file $file_out_fini] != 0} {
...
@@ -221,8 +221,12 @@ if {[wait_for_file $file_out_fini] != 0} {
}
}
}
}
if {$job_fini == 0} {
if {$job_fini == 0} {
send_user "\nFAILURE: file $file_out_fini contents are bad\n"
if {[test_power_save] == 0} {
set exit_code 1
send_user "\nFAILURE: file $file_out_fini contents are bad\n"
set exit_code 1
} else {
send_user "\nWARNING: job timeout bad, possibly due to power save mode\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