mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
Copy multiple qualified DBs to the image based on the board name.
The DBs are named in the format of qualified_components_${BOARD}_${HWQUALID}. If only one hwqual id for the board, named in qualified_components_${BOARD}. Review URL: http://codereview.chromium.org/3038026
This commit is contained in:
parent
ddb0f2c8e3
commit
1cf4329681
@ -5,17 +5,16 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/hardware_Components"
|
||||
COMPONENTS_FILE="${TEST_DIR}/qualified_components"
|
||||
|
||||
# If QUALDB not specified, use the one based on board name.
|
||||
if [ -z ${QUALDB} ]; then
|
||||
QUALDB="${TEST_DIR}/qualified_components_${BOARD}"
|
||||
QUALDB="${TEST_DIR}/qualified_components_${BOARD}*"
|
||||
fi
|
||||
|
||||
if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then
|
||||
# Copy the qualified component file to the image
|
||||
echo "Copying ${QUALDB} to the image."
|
||||
cp -f ${QUALDB} ${COMPONENTS_FILE}
|
||||
cp -f ${QUALDB} ${TEST_DIR}/
|
||||
else
|
||||
echo "No qualified component file found at: ${QUALDB}"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user