Skip to content
Snippets Groups Projects
Commit 92d300a7 authored by Danny Auble's avatar Danny Auble
Browse files

fix for test to allow multfactor success

parent c9ee582f
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ set job_id3 0
set prio1 -1
set prio2 -1
set prio3 -1
set multi 0
print_header $test_id
......@@ -49,6 +50,12 @@ if {[test_wiki_sched] == 1} {
exit $exit_code
}
# expected outcome is different under multifactor rule
if { ![string compare [priority_type] multifactor] } {
set multi 1
}
make_bash_script "pwd_script" { $bin_pwd }
#
......@@ -168,9 +175,16 @@ if {$job_id3 != 0} {
#
# Confirm reasonable values for the job priorities
#
if {$prio1 <= $prio2} {
send_user "\FAILURE: Job priorities are not decreasing: $prio1 <= $prio2 \n"
set exit_code 1
if {$multi} {
if {$prio1 != $prio2} {
send_user "\FAILURE: Job priorities are not same: $prio1 != $prio2 \n"
set exit_code 1
}
} else {
if {$prio1 <= $prio2} {
send_user "\FAILURE: Job priorities are not decreasing: $prio1 <= $prio2 \n"
set exit_code 1
}
}
if {$prio3 != 0} {
send_user "\FAILURE: Held job has non-zero priority: $prio3\n"
......
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