New version -- fixes the number of regions tested (i had reduced them to get a patch prepped in a hurry. d'oh!)
We were a bit too aggressive in trimming superfluous print messages earlier on. This patch adds a line of output for each iteration of the while loops in the test. The intention is to give the user something useful to indicate test progress without just printing a ton of debug spew. Maybe a future patch can redirect more verbose info to a log file.The output looks like this::localhost ~ # FLASHROM="./flashrom" sh flashrom_partial_write_test.shtesting flashrom binary: ./flashromRunning test in /tmp/tmp.4xPejwaADUffh pattern written in ff_4k.bin00h pattern written in 00_4k.binReading BIOS imageOriginal image saved as bios.binaligned region 0 test: passed...aligned region 15 test: passedunaligned region 0 test: passed...unaligned region 15 test: passedResult: PASSEDrestoring original bios image using system's flashromtest files remain in /tmp/tmp.4xPejwaADUSigned-off-by: David Hendricks <dhendrix@google.com>--
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.