Add log-related command-line options to unit tests.

You can now specify the following when running a unit test:
  -p, --print-logs
      Print the log messages as they are being generated.
  -o, --log-file=FILE
      Print all log messages to FILE instead of standard output

Also, when a test fails the messages no longer get dumped to standard
output. They only get dumped when specifying --print-logs.

Change-Id: Icc265734f302c27c24829409ca6f7c8fce2979d4
5 files changed
tree: 132b0f647385c6dceada127c1c93c7f250bf6dd6
  1. aos/
  2. doc/
  3. frc971/
  4. output/
  5. vision/
  6. .clang-format
  7. .gitignore
  8. README.txt