| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 sudo cp -fpru ${AUTOTEST_SRC}/client/* \ | 141 sudo cp -fpru ${AUTOTEST_SRC}/client/* \ |
| 142 "/tmp/autotest" | 142 "/tmp/autotest" |
| 143 # Remove outrageously large tests. | 143 # Remove outrageously large tests. |
| 144 # TODO(nsanders): is there a better way to do this? | 144 # TODO(nsanders): is there a better way to do this? |
| 145 sudo rm -rf /tmp/autotest/deps/realtimecomm_playground | 145 sudo rm -rf /tmp/autotest/deps/realtimecomm_playground |
| 146 sudo rm -rf /tmp/autotest/tests/ltp | 146 sudo rm -rf /tmp/autotest/tests/ltp |
| 147 sudo rm -rf /tmp/autotest/site_tests/graphics_O3DSelenium | 147 sudo rm -rf /tmp/autotest/site_tests/graphics_O3DSelenium |
| 148 sudo rm -rf /tmp/autotest/realtimecomm_GTalk* | 148 sudo rm -rf /tmp/autotest/realtimecomm_GTalk* |
| 149 sudo rm -rf /tmp/autotest/site_tests/platform_StackProtector | 149 sudo rm -rf /tmp/autotest/site_tests/platform_StackProtector |
| 150 sudo rm -rf /tmp/autotest/deps/chrome_test |
| 151 sudo rm -rf /tmp/autotest/site_tests/desktopui_BrowserTest |
| 152 sudo rm -rf /tmp/autotest/site_tests/desktopui_UITest |
| 150 | 153 |
| 151 sudo cp -fpru /tmp/autotest/* \ | 154 sudo cp -fpru /tmp/autotest/* \ |
| 152 "${stateful_root}/${autotest_client}" | 155 "${stateful_root}/${autotest_client}" |
| 153 sudo chmod 755 "${stateful_root}/${autotest_client}" | 156 sudo chmod 755 "${stateful_root}/${autotest_client}" |
| 154 sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}" | 157 sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}" |
| 155 } | 158 } |
| 156 | 159 |
| 157 # main process begins here. | 160 # main process begins here. |
| 158 | 161 |
| 159 # Make sure this is really what the user wants, before nuking the device | 162 # Make sure this is really what the user wants, before nuking the device |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bash | 225 bash |
| 223 popd | 226 popd |
| 224 fi | 227 fi |
| 225 | 228 |
| 226 cleanup | 229 cleanup |
| 227 | 230 |
| 228 print_time_elapsed | 231 print_time_elapsed |
| 229 | 232 |
| 230 trap - EXIT | 233 trap - EXIT |
| 231 | 234 |
| OLD | NEW |