crospts: Add upload results tarball to GS bucket to run_crospts.py

Compress the CrosPTS tast test results folder to a tarball file. The
tarball will be uploaded to GS bucket if the credential is valid for
remote bucket. The credential will be validated before tast run.

BUG=b:322255161
TEST=./run_crospts.py -c ~/.service-account.json -u
chromeos-moblab-<partner> -p ctxclock <DUT>
TEST=./run_crospts.py -c ~/.invalied-service-account.json -u
chromeos-moblab-<partner> -p ctxclock <DUT>

Change-Id: I4be71428e8ccb88fb818e567847986fedc2c96a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crospts/+/5246789
Reviewed-by: David Stevens <stevensd@chromium.org>
Tested-by: Darren Wu <darrenwu@chromium.org>
Commit-Queue: Darren Wu <darrenwu@chromium.org>
1 file changed
tree: b515d07de8f8669d34997f71c26ee862e3b3abbc
  1. build/
  2. docs/
  3. tools/
  4. .gitignore
  5. DIR_METADATA
  6. OWNERS
  7. PRESUBMIT.cfg