emmc-logger: Add timeout logic for stop logging
The caller of this script has a 90 second limit, and it is not
finishing in that window. This change defines what will happen in the
event that it takes longer to stop logging then expected.
Tested with psdmd timeout chnage
HOST:
```
emmc_tool --action=erase --erase_type=crypto_erase
(recovered with)
psdm StorageDeviceAction 'device_set: DEVICESET_ALL, initialize_action { properties {} }, psm_allow_list { value: ["bmc-psm"] }' --uid=
```
BMC:
```
cat /dev/random | systemd-cat
```
With this chnage the bmc does not have issues running the emmc_tool
command
Google-bug-id: 316848979, 317916486
Change-Id: I12253c1049e1e0be30ca8e2ce59f707eca394a02
Signed-off-by: John Edward Broadbent <jebr@google.com>
(cherry picked from commit 3f745330d75c129f3827175caa8d7de1d24dbd05)
4 files changed