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 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.

Change-Id: Iaf911d859333d748add452bda1a2d012f91cf2f8
Commit-Ready: Daniel Wang <>
Tested-by: Daniel Wang <>
Reviewed-by: Don Garrett <>
4 files changed