X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=host%2Fget_test.rb;h=a08062aec6c2c7fff83e5332cd1fc714ace0a9b8;hp=663deabab78935b9379cc591cb7141d6208ce417;hb=6131049b56c13e49ea9546f18febf31c572917f4;hpb=c3885c4a83156d5603c48afb57562531b7b256b7 diff --git a/host/get_test.rb b/host/get_test.rb index 663deab..a08062a 100644 --- a/host/get_test.rb +++ b/host/get_test.rb @@ -27,7 +27,7 @@ def read_line(error_msg=true) puts("ERROR: read timeout!\n") if error_msg return nil end - s.gsub(/\006/, ''); + return s.delete("\006"); end def readTestVector(param) @@ -77,7 +77,7 @@ def readTestVector(param) set=m[1].to_i; print("\nSet "+m[1]+":"); end - if (m=/Set [0-9]*, vector#[\s]*([0-9]+):/.match(lb)) + if (m=/Set [0-9], vector#[\s]*([0-9]+):/.match(lb)) vector=m[1].to_i; #print(" "+m[1]); if(vector!=0 && vector % $linewidth==0)