autotest: Ensure fastboot commands use sudo when required.
Previously we only prepended sudo when running on MobLab.
This is technically incorrect as some ACTS test stations
will be using user adb and will need to use sudo when
running provisioning.
Also prepends sudo to the Brillo provision command.
BUG=None.
TEST=Quick test on moblab.
Change-Id: I1487f28929b1a9641834a262db40d055aee39420
Reviewed-on: https://chromium-review.googlesource.com/320492
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Kevin Cheng <kevcheng@chromium.org>
2 files changed