Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Unified Diff: src/scripts/sync_build_test.sh

Issue 703001: Fix minor problem with autotest permissions (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/sync_build_test.sh
diff --git a/src/scripts/sync_build_test.sh b/src/scripts/sync_build_test.sh
index 96f069c443430ef4011370cc74e00015248c6b78..8743ae50d3596e3a0bd82408f2313074ff94365d 100755
--- a/src/scripts/sync_build_test.sh
+++ b/src/scripts/sync_build_test.sh
@@ -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 .
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698