Move probe() from hwid_tool into gooftool.

Since probe only makes sense on a DUT, and since probing requires
modules only available on DUTs, the probe command does not belong
in hwid_tool.

As part of the move, clean up the code a bit.

The output of probe should be tolerably human-readable, but
primarily machine parseable.  This CL cleans things up to only
use yaml-encoded output.

Probe result cooking is cleaned up as well.

TEST=run gooftool --probe and --verify-hwid

Change-Id: I1fe9382cbb25dd94b2d8a31f66158ed03f773255
Commit-Ready: Tammo Spalink <>
Reviewed-by: Tammo Spalink <>
Tested-by: Tammo Spalink <>
5 files changed