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 <cmasone@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
This commit is contained in:
Chris Sosa 2011-06-01 16:04:40 -07:00
parent 71afd1fe1a
commit e1b5bfad0e

View File

@ -353,7 +353,11 @@ https://sandbox.google.com/storage/${RELATIVE_ARCHIVE_URL_PATH}"
fi fi
if [ -n "${FLAGS_test_tarball}" ]; then 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 fi
# Purge old builds if necessary # Purge old builds if necessary