| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Script to modify a keyfob-based chromeos system image for testability. | 7 # Script to modify a keyfob-based chromeos system image for testability. |
| 8 | 8 |
| 9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
| 10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 echo "Install autotest into stateful partition from $AUTOTEST_SRC" | 129 echo "Install autotest into stateful partition from $AUTOTEST_SRC" |
| 130 | 130 |
| 131 sudo mkdir -p "${stateful_root}${autotest_client}" | 131 sudo mkdir -p "${stateful_root}${autotest_client}" |
| 132 | 132 |
| 133 # Remove excess files from stateful partition. | 133 # Remove excess files from stateful partition. |
| 134 # If these aren't there, that's fine. | 134 # If these aren't there, that's fine. |
| 135 sudo rm -rf "${stateful_root}${autotest_client}/*" || true | 135 sudo rm -rf "${stateful_root}${autotest_client}/*" || true |
| 136 sudo rm -rf "${stateful_root}/autotest-pkgs" || true | 136 sudo rm -rf "${stateful_root}/autotest-pkgs" || true |
| 137 sudo rm -rf "${stateful_root}/lib/icedtea6" || true | 137 sudo rm -rf "${stateful_root}/lib/icedtea6" || true |
| 138 | 138 |
| 139 sudo rsync --delete --delete-excluded -auvq \ | 139 sudo rsync --delete --delete-excluded -auv \ |
| 140 --exclude=deps/realtimecomm_playground \ | 140 --exclude=deps/realtimecomm_playground \ |
| 141 --exclude=tests/ltp \ | 141 --exclude=tests/ltp \ |
| 142 --exclude=site_tests/graphics_O3DSelenium \ | 142 --exclude=site_tests/graphics_O3DSelenium \ |
| 143 --exclude=site_tests/realtimecomm_GTalk\* \ | 143 --exclude=site_tests/realtimecomm_GTalk\* \ |
| 144 --exclude=site_tests/platform_StackProtector \ | 144 --exclude=site_tests/platform_StackProtector \ |
| 145 --exclude=deps/chrome_test \ | 145 --exclude=deps/chrome_test \ |
| 146 --exclude=site_tests/desktopui_BrowserTest \ | 146 --exclude=site_tests/desktopui_BrowserTest \ |
| 147 --exclude=site_tests/desktopui_UITest \ | 147 --exclude=site_tests/desktopui_UITest \ |
| 148 --exclude=.svn \ | 148 --exclude=.svn \ |
| 149 ${AUTOTEST_SRC}/client/* "${stateful_root}/${autotest_client}" | 149 ${AUTOTEST_SRC}/client/* "${stateful_root}/${autotest_client}" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 cleanup | 224 cleanup |
| 225 | 225 |
| 226 # Now make it bootable with the flags from build_image | 226 # Now make it bootable with the flags from build_image |
| 227 ${SCRIPTS_DIR}/bin/cros_make_image_bootable $(dirname "${FLAGS_image}") \ | 227 ${SCRIPTS_DIR}/bin/cros_make_image_bootable $(dirname "${FLAGS_image}") \ |
| 228 $(basename "${FLAGS_image}") | 228 $(basename "${FLAGS_image}") |
| 229 | 229 |
| 230 print_time_elapsed | 230 print_time_elapsed |
| 231 | 231 |
| 232 trap - EXIT | 232 trap - EXIT |
| 233 | 233 |
| OLD | NEW |