trace_replay: Add available space check

Check is there enough free  space inside crosvm container to download and
unpack each trace file and return properly formatted error message if the
size is insufficient.

BUG=b:162388610
TEST=tast run --buildbundle=crosint ${DUT} graphics.TraceReplay.prison_architect

Change-Id: I32c6f76dcb9fae97055f49dda774a040dd5074d8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/graphics/+/2324726
Reviewed-by: Po-Hsien Wang <pwang@chromium.org>
Tested-by: Robert Tarasov <tutankhamen@chromium.org>
Tested-by: Po-Hsien Wang <pwang@chromium.org>
Commit-Queue: Po-Hsien Wang <pwang@chromium.org>
2 files changed
tree: 780cfb480caa30fadea1355841454baa2e7fb2fd
  1. src/
  2. .gitignore
  3. OWNERS
  4. PRESUBMIT.cfg
  5. PRESUBMIT.py
  6. pylintrc