Skip to content
Snippets Groups Projects
Commit a5dd1326 authored by Albert Gil's avatar Albert Gil
Browse files

Testsuite - Fix test20.15 when Cores > 1


Bug 10726

Signed-off-by: default avatarNate Rini <nate@schedmd.com>
parent fc769f06
No related branches found
No related tags found
No related merge requests found
...@@ -50,4 +50,11 @@ subtest {[regexp "WARNING: Efficiency statistics may be misleading for RUNNING j ...@@ -50,4 +50,11 @@ subtest {[regexp "WARNING: Efficiency statistics may be misleading for RUNNING j
wait_for_command "$sacct" "-X -n -j $job_id" "COMPLETED" wait_for_command "$sacct" "-X -n -j $job_id" "COMPLETED"
set out [run_command_output -fail "$seff $job_id"] set out [run_command_output -fail "$seff $job_id"]
subtest {[regexp "State: COMPLETED" $out]} "Job should be reported as COMPLETED by seff" subtest {[regexp "State: COMPLETED" $out]} "Job should be reported as COMPLETED by seff"
subtest {[regexp -line {CPU Efficiency: 0.00% of 00:00:1\d core-walltime} $out]} "Job efficiency should be 0.00% of >=10s core-walltime" subtest {[regexp "Cores: \(\\d+\)" $out {} cores] || \
[regexp "Cores per node: \(\\d+\)" $out {} cores]} "seff should report the number of cores (per node) based on the configuration"
# On select/linear or other configs, cores could be > 1
if {$cores > 5} {
subskip "Not subtesting CPU Efficency if Cores ($cores) > 5"
} else {
subtest {[regexp -line "CPU Efficiency: 0.00% of 00:00:$cores\\d core-walltime" $out]} "Job efficiency should be 0.00% of >=10s*Cores core-walltime"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment