Update ctest to copy images to a new directory before modifying them.

ctest needs to copy images to a new directory to avoid race conditions
with the archive_build code. This ensures that both processes aren't
writing the same files at the same time.

BUG=chromium-os:19205
TEST=Sample test run of x86-mario-release.

Change-Id: Ibcd507a609c6c9b32f90cad456bfe905e89cf9d5
Reviewed-on: http://gerrit.chromium.org/gerrit/6056
Tested-by: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
3 files changed