Skip to content
Snippets Groups Projects
Commit fde4b588 authored by Morris Jette's avatar Morris Jette
Browse files

Modify test to work-around expect problem with large buffers

Modify test2.8 to prevent a problem with "expect" that fails to
process all of the information in a job output buffer if that
buffer is large (hundreds of lines).
parent fee21b10
No related branches found
No related tags found
No related merge requests found
......@@ -97,15 +97,28 @@ if {$job_id2 == 0} {
exec $bin_rm -f $file_in
#
# Look at all jobs with scontrol
# Look for these jobs with scontrol
#
# NOTE: Running "scontrol show job" and looking for these job IDs
# may not work due to a bug in awk not scanning large output buffers
#
set matches 0
spawn $scontrol show job
spawn $scontrol show job $job_id1
expect {
-re "JobId=$job_id1 " {
incr matches
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
}
eof {
wait
}
}
spawn $scontrol show job $job_id2
expect {
-re "JobId=$job_id2 " {
incr matches
exp_continue
......
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