X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=host%2Fbigint_test.rb;h=42f6080d84892af524c6f3a525f79d3429ba5980;hp=cb9de13d19aa144d6f0ac2e48dd8d99b52ffbe8e;hb=a012cfa921853fb9b8bd484981ab471a9ba25ec9;hpb=6cddae4d0fa8acf9d3bfd5e0f42c789c32f3a992 diff --git a/host/bigint_test.rb b/host/bigint_test.rb index cb9de13..42f6080 100644 --- a/host/bigint_test.rb +++ b/host/bigint_test.rb @@ -145,6 +145,7 @@ end def wait_for_prompt(prompt) prompt = /[\s]*#{prompt}[\s]*/ if(prompt.class == String) start_time = Time.now.to_i + acc = '' begin line = $sp.gets() puts("DBG got (#{__LINE__}): "+line) if $debug && line @@ -156,7 +157,8 @@ def wait_for_prompt(prompt) if (Time.now.to_i- start_time) > $max_timeout return false end - end while not m=prompt.match(line) + acc += line + end while not m=prompt.match(acc) return m end @@ -818,7 +820,7 @@ conf = readconfigfile(opts["f"], conf) if opts["f"] #puts conf.inspect init_serialport(conf) - $max_timeout = 2 * 60 + $max_timeout = 5 * 60 if opts['d'] $debug = true