flatcar-scripts/mod_for_factory_scripts/500copyQualDb
Elly Jones c5fe33d940 Revert "Copy multiple qualified DBs to the image based on the board name."
This commit breaks the build for x86-full-fast-generic at least. It causes a
file to be copied to itself during the build archive step:
http://build.chromium.org/buildbot/chromiumos/builders/x86%20generic%20full%20fast/builds/128/steps/archive_build/logs/stdio

TEST=None
BUG=None

This reverts commit 1cf4329681.

Signed-Off-By: Elly Jones <ellyjones@chromium.org>
Signed-Off-By: Nathan Williams <njw@chromium.org>

Review URL: http://codereview.chromium.org/2808069
2010-07-27 10:40:10 -04:00

22 lines
696 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# 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}"
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}
else
echo "No qualified component file found at: ${QUALDB}"
fi