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

Minor changes to further bullet proof test (Makes sure sacct doesn't

look at any other day for -D jobs)
parent 57efc873
No related branches found
No related tags found
No related merge requests found
...@@ -58,12 +58,12 @@ proc mod_state { state } { ...@@ -58,12 +58,12 @@ proc mod_state { state } {
proc check_step { num } { proc check_step { num } {
global sacct job_id exit_code global sacct job_id exit_code
set steps 0 set steps 0
spawn $sacct --job=$job_id\.batch -D --noheader --format=jobid%30 -P spawn $sacct --job=$job_id\.batch -D --start=today --noheader --format=jobid -P
expect { expect {
-re "batch" { -re "batch" {
incr steps 1 incr steps
send_user "got here with $steps\n"
exp_continue exp_continue
} }
timeout { timeout {
...@@ -75,6 +75,7 @@ proc check_step { num } { ...@@ -75,6 +75,7 @@ proc check_step { num } {
} }
} }
if {$num != $steps} { if {$num != $steps} {
send_user "\nFAILURE: found $steps step(s) when expecting " send_user "\nFAILURE: found $steps step(s) when expecting "
send_user "$num steps\n" send_user "$num steps\n"
...@@ -86,10 +87,10 @@ proc check_sacct_states { states } { ...@@ -86,10 +87,10 @@ proc check_sacct_states { states } {
global job_id sacct global job_id sacct
set state_num 0 set state_num 0
spawn $sacct --job=$job_id -D --noheader --format=state -P spawn $sacct --job=$job_id -D --start=today --noheader --format=state -P
expect { expect {
-re ($states) { -re ($states) {
incr state_num 1 incr state_num
exp_continue exp_continue
} }
timeout { timeout {
......
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