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
e4214557
Commit
e4214557
authored
9 years ago
by
Morris Jette
Browse files
Options
Downloads
Plain Diff
Merge branch 'slurm-14.11'
parents
7730ac4b
4f9217ec
No related branches found
Branches containing commit
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/test1.75
+12
-5
12 additions, 5 deletions
testsuite/expect/test1.75
with
44 additions
and
5 deletions
testsuite/expect/globals
+
32
−
0
View file @
e4214557
...
@@ -2352,8 +2352,40 @@ proc get_job_acct_freq { } {
...
@@ -2352,8 +2352,40 @@ proc get_job_acct_freq { } {
log_user 1
log_user 1
return $freq_val
return $freq_val
}
################################################################
#
# Proc: get_job_acct_type
#
# Purpose: gets the value of JobAcctGatherType
#
# Returns: JobAcctGatherType value
#
################################################################
proc get_job_acct_type { } {
global scontrol alpha
log_user 0
set gather_type "none"
spawn $scontrol show config
expect {
-re "JobAcctGatherType *= jobacct_gather/($alpha)" {
set gather_type $expect_out(1,string)
exp_continue
}
-re "JobAcctGatherType *= ($alpha)" {
set gather_type $expect_out(1,string)
exp_continue
}
eof {
wait
}
}
log_user 1
return $gather_type
}
}
################################################################
################################################################
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test1.75
+
12
−
5
View file @
e4214557
...
@@ -56,9 +56,13 @@ if { [test_using_slurmdbd] == 0 } {
...
@@ -56,9 +56,13 @@ if { [test_using_slurmdbd] == 0 } {
exit 0
exit 0
}
}
if {![string compare [test_proctrack] "linuxproc"]} {
if {![string compare [test_proctrack] "linuxproc"]} {
send_user "\nWARNING: this test cannot run on
p
roctrack
t
ype of linuxproc\n"
send_user "\nWARNING: this test cannot run on
P
roctrack
T
ype of linuxproc\n"
exit 0
exit 0
}
}
if {![string compare [get_job_acct_type] "none"]} {
send_user "\nWARNING: this test cannot run on JobAcctGatherType of none\n"
exit 0
}
if {[slurmd_user_root] == 0} {
if {[slurmd_user_root] == 0} {
send_user "\nWARNING: This test is incompatible with SlurmdUser != root\n"
send_user "\nWARNING: This test is incompatible with SlurmdUser != root\n"
exit 0
exit 0
...
@@ -197,7 +201,7 @@ array set freq_lvl_1 [sub_job [array get freq_lvl_1]]
...
@@ -197,7 +201,7 @@ array set freq_lvl_1 [sub_job [array get freq_lvl_1]]
if { (($freq_lvl_1(low) > $freq_lvl_1(medium)) ||
if { (($freq_lvl_1(low) > $freq_lvl_1(medium)) ||
($freq_lvl_1(medium) > $freq_lvl_1(high)) ||
($freq_lvl_1(medium) > $freq_lvl_1(high)) ||
($freq_lvl_1(highm1) > $freq_lvl_1(high)))} {
($freq_lvl_1(highm1) > $freq_lvl_1(high)))} {
send_user "\nFAILURE: CPU frequenc
i
es are not
correct
\n"
send_user "\nFAILURE: CPU frequenc
y valu
es are not
valid
\n"
foreach name [array names freq_lvl_1] {
foreach name [array names freq_lvl_1] {
send_user "$name is $freq_lvl_1($name)\n"
send_user "$name is $freq_lvl_1($name)\n"
}
}
...
@@ -206,9 +210,12 @@ if { (($freq_lvl_1(low) > $freq_lvl_1(medium)) ||
...
@@ -206,9 +210,12 @@ if { (($freq_lvl_1(low) > $freq_lvl_1(medium)) ||
array set freq_lvl_2 [sub_job [array get freq_lvl_2]]
array set freq_lvl_2 [sub_job [array get freq_lvl_2]]
if {($freq_lvl_2(conservative) == 0) || ($freq_lvl_2(ondemand) == 0) || ($freq_lvl_2(performance) == 0) ||
if {($freq_lvl_2(conservative) == 0) || ($freq_lvl_2(ondemand) == 0)
($freq_lvl_2(powersave) == 0)} {
|| ($freq_lvl_2(performance) == 0) || ($freq_lvl_2(powersave) == 0)} {
send_user "\nFAILURE: CPU frequencies are not correct\n"
send_user "\nFAILURE: CPU frequency values are invalid\n"
foreach name [array names freq_lvl_2] {
send_user "$name is $freq_lvl_2($name)\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