flatcar-scripts/mod_for_factory_scripts/500populateQualDbs
Tom Wai-Hong Tam 10a980eeb6 Reflect the change of QualDbs location moved.
Reflect the change of https://chromereview.prom.corp.google.com/1638035

TEST=manaul
 - image_to_usb --factory
 - run factory test
   -- match HWID
   -- write GBB
   -- reboot
   -- check HW components

Review URL: http://codereview.chromium.org/3290021

Change-Id: Id97153fe1d06917ac13d1470866c17d5e4acdc9d
2010-09-14 02:52:26 +08:00

22 lines
660 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"
pushd ${TEST_DIR} 1> /dev/null
# Remove the DB directories belonging to other boards.
KEEPDB="data_${BOARD}"
ls -d data_* 2> /dev/null | grep -v ${KEEPDB} | xargs rm -fr
# Ensure there is DB directory in x86-agz and x86-mario.
if [ ! -d ${KEEPDB} -a \
\( "${BOARD}" = "x86-agz" -o "${BOARD}" = "x86-mario" \) ]; then
echo "No component DB directory found at: ${KEEPDB}"
fi
popd 1> /dev/null