From e1b5bfad0e29ff8ba50a3fc5ce8da03f205e28e3 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Wed, 1 Jun 2011 16:04:40 -0700 Subject: [PATCH] Cp testtarball to outdir and upload from there. This solves this issue where if we don't upload to gsutil and instead just archive locally we still have the test tarball. BUG=chromium-os:16014 TEST=Ran with no gsutil option set and a tarball file. Change-Id: I5e14801f7b0a58f589a400278274fb566e580bea Reviewed-on: http://gerrit.chromium.org/gerrit/1921 Reviewed-by: Chris Masone Tested-by: Chris Sosa --- archive_build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archive_build.sh b/archive_build.sh index 0492222fc3..f78d904b3d 100755 --- a/archive_build.sh +++ b/archive_build.sh @@ -353,7 +353,11 @@ https://sandbox.google.com/storage/${RELATIVE_ARCHIVE_URL_PATH}" fi if [ -n "${FLAGS_test_tarball}" ]; then - gsutil_archive "${FLAGS_test_tarball}" "test_results.tgz" + # Copy to local outdir first. + TEST_TARBALL_OUT="${OUTDIR}/$(basename "${FLAGS_test_tarball}")" + cp "${FLAGS_test_tarball}" "${TEST_TARBALL_OUT}" + chmod 644 "${TEST_TARBALL_OUT}" + gsutil_archive "${TEST_TARBALL_OUT}" "test_results.tgz" fi # Purge old builds if necessary