Fix minor problem with autotest permissions

When grabbing buildbot image and test artifacts, properly install the test artifacts as if they were built by the user (with the user as owner).

Review URL: http://codereview.chromium.org/703001
This commit is contained in:
Ken Mixter 2010-03-08 19:37:52 -08:00
parent 9bd43a1515
commit 7e41907f97

View File

@ -459,9 +459,12 @@ function grab_buildbot() {
tar_name="${dl_dir}/autotest.tar.bz2"
fi
sudo rm -rf "${dir}/autotest"
cd ${dir}
# Expand in temp directory as current user, then move it as
# root to keep local user ownership
run_phase "Unpacking buildbot autotest cross-compiled binaries" \
tar ${tar_args} "${tar_name}"
run_phase "Installing buildbot autotest cross-compiled binaries" \
sudo tar ${tar_args} "${tar_name}"
sudo mv autotest ${dir}
fi
fi
chdir_relative .