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

Side by Side Diff: mod_image_for_test.sh

Issue 2819039: remove autotests in case they come back (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 AUTOTEST_SRC="${SYSROOT}/usr/local/autotest" 107 AUTOTEST_SRC="${SYSROOT}/usr/local/autotest"
108 stateful_root="${ROOT_FS_DIR}/usr/local" 108 stateful_root="${ROOT_FS_DIR}/usr/local"
109 autotest_client="/autotest" 109 autotest_client="/autotest"
110 110
111 echo "Install autotest into stateful partition from $AUTOTEST_SRC" 111 echo "Install autotest into stateful partition from $AUTOTEST_SRC"
112 112
113 sudo mkdir -p "${stateful_root}${autotest_client}" 113 sudo mkdir -p "${stateful_root}${autotest_client}"
114 sudo mkdir -p "/tmp/autotest" 114 sudo mkdir -p "/tmp/autotest"
115 sudo rm -rf /tmp/autotest/* 115 sudo rm -rf /tmp/autotest/*
116 116
117 # Remove excess files from stateful partition.
118 # If these aren't there, that's fine.
119 sudo rm -rf "${stateful_root}${autotest_client}/*" || true
120 sudo rm -rf "${stateful_root}/autotest-pkgs" || true
121 sudo rm -rf "${stateful_root}/lib/icedtea6" || true
ericli 2010/07/03 02:04:47 why icetea6 here? otherwise LGTM.
Nick Sanders 2010/07/04 01:37:54 From factory perspective, it's 150+MB of useless s
122
117 sudo cp -fpru ${AUTOTEST_SRC}/client/* \ 123 sudo cp -fpru ${AUTOTEST_SRC}/client/* \
118 "/tmp/autotest" 124 "/tmp/autotest"
119 # Remove outrageously large tests. 125 # Remove outrageously large tests.
120 # TODO(nsanders): is there a better way to do this? 126 # TODO(nsanders): is there a better way to do this?
121 sudo rm -rf /tmp/autotest/deps/realtimecomm_playground 127 sudo rm -rf /tmp/autotest/deps/realtimecomm_playground
122 sudo rm -rf /tmp/autotest/tests/ltp 128 sudo rm -rf /tmp/autotest/tests/ltp
123 sudo rm -rf /tmp/autotest/site_tests/graphics_O3DSelenium 129 sudo rm -rf /tmp/autotest/site_tests/graphics_O3DSelenium
124 sudo rm -rf /tmp/autotest/realtimecomm_GTalk* 130 sudo rm -rf /tmp/autotest/realtimecomm_GTalk*
125 sudo rm -rf /tmp/autotest/site_tests/platform_StackProtector 131 sudo rm -rf /tmp/autotest/site_tests/platform_StackProtector
126 132
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 bash 204 bash
199 popd 205 popd
200 fi 206 fi
201 207
202 cleanup 208 cleanup
203 209
204 print_time_elapsed 210 print_time_elapsed
205 211
206 trap - EXIT 212 trap - EXIT
207 213
OLDNEW
« 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