Run a dummy command in ChrootRunCommand to create a chroot if needed.

In ChrootRunCommand, if return_output is set, run a dummy command first to
make sure the chroot exists before running the actual command whose output
is desired.

BUG=chromium:429823
TEST=Ran build_tc.py with freshly setup chromeos sources without a chroot.

Change-Id: Icdd954671e172066f8fb3402d04174295b1aff61
Reviewed-on: https://chrome-internal-review.googlesource.com/182696
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Rahul Chaudhry <rahulchaudhry@google.com>
Tested-by: Rahul Chaudhry <rahulchaudhry@google.com>
1 file changed