au_worker: Defer chroot path replacement until call to test_that
When running KVM tests, cros_run_vm_test starts a KVM instances, and tries to
SSH into it with the provided private key, before its call to test_that (the
ssh_ping phase). ssh_ping needes the key path to be outside of chroot. So we
defer the chroot path replacement until the actual call to test_that, which only
runs inside chroot.
Also, fix an out-dated parameter in gce_au_worker.py. This is a left-over of
TEST=Trybot run with rambi-pre-cq, and a trybot run with a build that has the
USE flag 'generated_key' enabled.
Commit-Ready: Daniel Wang <firstname.lastname@example.org>
Tested-by: Daniel Wang <email@example.com>
Reviewed-by: Don Garrett <firstname.lastname@example.org>
4 files changed