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

Side by Side Diff: mod_for_factory_scripts/500copyQualDb

Issue 2808069: Revert "Copy multiple qualified DBs to the image based on the board name." (Closed) Base URL: ssh://git@chromiumos-git//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) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 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 TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/hardware_Components" 7 TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/hardware_Components"
8 COMPONENTS_FILE="${TEST_DIR}/qualified_components"
8 9
9 # If QUALDB not specified, use the one based on board name. 10 # If QUALDB not specified, use the one based on board name.
10 if [ -z ${QUALDB} ]; then 11 if [ -z ${QUALDB} ]; then
11 QUALDB="${TEST_DIR}/qualified_components_${BOARD}*" 12 QUALDB="${TEST_DIR}/qualified_components_${BOARD}"
12 fi 13 fi
13 14
14 if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then 15 if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then
15 # Copy the qualified component file to the image 16 # Copy the qualified component file to the image
16 echo "Copying ${QUALDB} to the image." 17 echo "Copying ${QUALDB} to the image."
17 cp -f ${QUALDB} ${TEST_DIR}/ 18 cp -f ${QUALDB} ${COMPONENTS_FILE}
18 else 19 else
19 echo "No qualified component file found at: ${QUALDB}" 20 echo "No qualified component file found at: ${QUALDB}"
20 fi 21 fi
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