OLD | NEW |
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" | |
9 | 8 |
10 # If QUALDB not specified, use the one based on board name. | 9 # If QUALDB not specified, use the one based on board name. |
11 if [ -z ${QUALDB} ]; then | 10 if [ -z ${QUALDB} ]; then |
12 QUALDB="${TEST_DIR}/qualified_components_${BOARD}" | 11 QUALDB="${TEST_DIR}/qualified_components_${BOARD}*" |
13 fi | 12 fi |
14 | 13 |
15 if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then | 14 if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then |
16 # Copy the qualified component file to the image | 15 # Copy the qualified component file to the image |
17 echo "Copying ${QUALDB} to the image." | 16 echo "Copying ${QUALDB} to the image." |
18 cp -f ${QUALDB} ${COMPONENTS_FILE} | 17 cp -f ${QUALDB} ${TEST_DIR}/ |
19 else | 18 else |
20 echo "No qualified component file found at: ${QUALDB}" | 19 echo "No qualified component file found at: ${QUALDB}" |
21 fi | 20 fi |
OLD | NEW |