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

Unified Diff: mod_image_for_test.sh

Issue 2832079: Remove .svn files from the client directory to save space (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Merge to master Created 10 years, 4 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: mod_image_for_test.sh
diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh
index eab9d9e1cf9e05092f413269614c77865bf78319..06ad120ee043620012236c986cc6afeddcbf0554 100755
--- a/mod_image_for_test.sh
+++ b/mod_image_for_test.sh
@@ -129,8 +129,6 @@ install_autotest() {
echo "Install autotest into stateful partition from $AUTOTEST_SRC"
sudo mkdir -p "${stateful_root}${autotest_client}"
- sudo mkdir -p "/tmp/autotest"
- sudo rm -rf /tmp/autotest/*
# Remove excess files from stateful partition.
# If these aren't there, that's fine.
@@ -138,21 +136,18 @@ install_autotest() {
sudo rm -rf "${stateful_root}/autotest-pkgs" || true
sudo rm -rf "${stateful_root}/lib/icedtea6" || true
- sudo cp -fpru ${AUTOTEST_SRC}/client/* \
- "/tmp/autotest"
- # Remove outrageously large tests.
- # TODO(nsanders): is there a better way to do this?
- sudo rm -rf /tmp/autotest/deps/realtimecomm_playground
- sudo rm -rf /tmp/autotest/tests/ltp
- sudo rm -rf /tmp/autotest/site_tests/graphics_O3DSelenium
- sudo rm -rf /tmp/autotest/realtimecomm_GTalk*
- sudo rm -rf /tmp/autotest/site_tests/platform_StackProtector
- sudo rm -rf /tmp/autotest/deps/chrome_test
- sudo rm -rf /tmp/autotest/site_tests/desktopui_BrowserTest
- sudo rm -rf /tmp/autotest/site_tests/desktopui_UITest
-
- sudo cp -fpru /tmp/autotest/* \
- "${stateful_root}/${autotest_client}"
+ sudo rsync --delete --delete-excluded -auvq \
+ --exclude=deps/realtimecomm_playground \
+ --exclude=tests/ltp \
+ --exclude=site_tests/graphics_O3DSelenium \
+ --exclude=site_tests/realtimecomm_GTalk\* \
+ --exclude=site_tests/platform_StackProtector \
+ --exclude=deps/chrome_test \
+ --exclude=site_tests/desktopui_BrowserTest \
+ --exclude=site_tests/desktopui_UITest \
+ --exclude=.svn \
+ ${AUTOTEST_SRC}/client/* "${stateful_root}/${autotest_client}"
+
sudo chmod 755 "${stateful_root}/${autotest_client}"
sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}"
}
« 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