mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
Remove .svn files from the client directory to save space
Copying the .ssh directories within client takes up O(2n) space in the stateful partition BUG=none TEST=reran mod_image_for_test.sh Review URL: http://codereview.chromium.org/2832079
This commit is contained in:
parent
733fc865db
commit
072ea6f30e
@ -129,8 +129,6 @@ install_autotest() {
|
|||||||
echo "Install autotest into stateful partition from $AUTOTEST_SRC"
|
echo "Install autotest into stateful partition from $AUTOTEST_SRC"
|
||||||
|
|
||||||
sudo mkdir -p "${stateful_root}${autotest_client}"
|
sudo mkdir -p "${stateful_root}${autotest_client}"
|
||||||
sudo mkdir -p "/tmp/autotest"
|
|
||||||
sudo rm -rf /tmp/autotest/*
|
|
||||||
|
|
||||||
# Remove excess files from stateful partition.
|
# Remove excess files from stateful partition.
|
||||||
# If these aren't there, that's fine.
|
# 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}/autotest-pkgs" || true
|
||||||
sudo rm -rf "${stateful_root}/lib/icedtea6" || true
|
sudo rm -rf "${stateful_root}/lib/icedtea6" || true
|
||||||
|
|
||||||
sudo cp -fpru ${AUTOTEST_SRC}/client/* \
|
sudo rsync --delete --delete-excluded -auvq \
|
||||||
"/tmp/autotest"
|
--exclude=deps/realtimecomm_playground \
|
||||||
# Remove outrageously large tests.
|
--exclude=tests/ltp \
|
||||||
# TODO(nsanders): is there a better way to do this?
|
--exclude=site_tests/graphics_O3DSelenium \
|
||||||
sudo rm -rf /tmp/autotest/deps/realtimecomm_playground
|
--exclude=site_tests/realtimecomm_GTalk\* \
|
||||||
sudo rm -rf /tmp/autotest/tests/ltp
|
--exclude=site_tests/platform_StackProtector \
|
||||||
sudo rm -rf /tmp/autotest/site_tests/graphics_O3DSelenium
|
--exclude=deps/chrome_test \
|
||||||
sudo rm -rf /tmp/autotest/realtimecomm_GTalk*
|
--exclude=site_tests/desktopui_BrowserTest \
|
||||||
sudo rm -rf /tmp/autotest/site_tests/platform_StackProtector
|
--exclude=site_tests/desktopui_UITest \
|
||||||
sudo rm -rf /tmp/autotest/deps/chrome_test
|
--exclude=.svn \
|
||||||
sudo rm -rf /tmp/autotest/site_tests/desktopui_BrowserTest
|
${AUTOTEST_SRC}/client/* "${stateful_root}/${autotest_client}"
|
||||||
sudo rm -rf /tmp/autotest/site_tests/desktopui_UITest
|
|
||||||
|
|
||||||
sudo cp -fpru /tmp/autotest/* \
|
|
||||||
"${stateful_root}/${autotest_client}"
|
|
||||||
sudo chmod 755 "${stateful_root}/${autotest_client}"
|
sudo chmod 755 "${stateful_root}/${autotest_client}"
|
||||||
sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}"
|
sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user