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

more refinement to test

parent a35eaa3a
No related branches found
No related tags found
No related merge requests found
......@@ -57,14 +57,14 @@ proc inc21_30_1 {} {
spawn $salloc -N1 --account=$acct --exclusive $srun $bin_sleep 10
expect {
-re "Granted job allocation ($number)" {
set job_id2 $expect_out(1,string)
send_user "\njob $job_id2 has been submitted\n"
}
-re "job ($number)" {
-re "job ($number) queued and waiting for resources" {
set job_id2 $expect_out(1,string)
send_user "\nJob $job_id2 is waiting for resources. This is expected.\n"
}
-re "Granted job allocation ($number)" {
send_user "\nFAILURE: This should have pended but did not\n"
set exit_code 1
}
timeout {
send_user "\nFAILURE: salloc is not reponding\n"
set exit_code 1
......
......@@ -38,12 +38,9 @@ proc inc21_30_5 {} {
spawn $salloc --account=$acct -n$maxcpu_num $srun $bin_sleep 2
expect {
-re "job ($number)" {
set job_id1 $expect_out(1,string)
send_user "\nThis is expected do not worry\n"
}
-re "Granted job allocation ($number)" {
set job_id1 $expect_out(1,string)
send_user "\njob $job_id1 has been submitted\n"
}
timeout {
send_user "\nFAILURE: salloc not responding\n"
......@@ -61,7 +58,7 @@ proc inc21_30_5 {} {
expect {
-re "Pending job allocation ($number)" {
set job_id1 $expect_out(1,string)
send_user "\nThis is expected do not worry\n"
send_user "\nJob $job_id1 is waiting for resources. This is expected.\n"
}
-re "Granted job allocation ($number)" {
send_user "\nFAILURE: This should have pended but did not\n"
......
......@@ -40,6 +40,7 @@ proc inc21_30_6 {} {
expect {
-re "Granted job allocation ($number)" {
set job_id1 $expect_out(1,string)
send_user "\njob $job_id1 has been submitted\n"
}
-re "Pending job allocation ($number)" {
set job_id1 $expect_out(1,string)
......@@ -60,9 +61,9 @@ proc inc21_30_6 {} {
spawn $salloc --account=$acct -N[expr $maxnode_num + 1] --exclusive -t1 $srun $bin_sleep 2
expect {
-re "Pending job allocation ($number)" {
-re "job ($number) queued and waiting for resources" {
set job_id1 $expect_out(1,string)
send_user "\nThis is expected do not worry\n"
send_user "\nJob $job_id1 is waiting for resources. This is expected.\n"
}
-re "Granted job allocation ($number)" {
send_user "\nFAILURE: This should have pended but did not\n"
......
......@@ -157,6 +157,8 @@ proc endit { } {
if {$exit_code == 0} {
print_success $test_id
} else {
send_user "\nFAILURE: test $test_id\n"
}
exit $exit_code
......@@ -247,7 +249,7 @@ expect {
mod_qos $grn_num -1 -1 -1 -1 -1 -1 -1
sleep 5
sleep 1
#test GrpNode limit
inc21_30_1
if {$exit_code != 0} {
......@@ -256,7 +258,7 @@ if {$exit_code != 0} {
mod_qos -1 $grcpu_num -1 -1 -1 -1 -1 -1
sleep 5
sleep 1
#test GrpCpus
inc21_30_2
if {$exit_code != 0} {
......@@ -265,7 +267,7 @@ if {$exit_code != 0} {
mod_qos -1 -1 $grjobs_num -1 -1 -1 -1 -1
sleep 5
sleep 1
# test GrpJob limits
inc21_30_3
if {$exit_code != 0} {
......@@ -275,7 +277,7 @@ if {$exit_code != 0} {
mod_qos -1 -1 -1 $grsub_num -1 -1 -1 -1
sleep 5
sleep 1
# test GrpSubmit
inc21_30_4
if {$exit_code != 0} {
......@@ -285,7 +287,7 @@ if {$exit_code != 0} {
mod_qos -1 -1 -1 -1 $maxcpu_num -1 -1 -1
sleep 5
sleep 1
#test MaxCpus limits
inc21_30_5
if {$exit_code != 0} {
......@@ -294,7 +296,7 @@ if {$exit_code != 0} {
mod_qos -1 -1 -1 -1 -1 $maxnode_num -1 -1
sleep 5
sleep 1
#test MaxNode limit
inc21_30_6
if {$exit_code != 0} {
......@@ -303,7 +305,7 @@ if {$exit_code != 0} {
mod_qos -1 -1 -1 -1 -1 -1 $maxjobs_num -1
sleep 5
sleep 1
#test MaxJobs limit
inc21_30_7
if {$exit_code != 0} {
......@@ -312,7 +314,7 @@ if {$exit_code != 0} {
mod_qos -1 -1 -1 -1 -1 -1 -1 $maxjobsub_num
sleep 5
sleep 1
#test MaxJobsSubmits limit
inc21_30_8
if {$exit_code != 0} {
......
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