mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
BUG=chrome-os-partner:1583 TEST=built factory image Change-Id: Icc15295ca3ce6113ea22a988e2e755ab513a43de Review URL: http://codereview.chromium.org/5219001
25 lines
672 B
Bash
Executable File
25 lines
672 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/suite_Factory"
|
|
|
|
if [ -d "${TEST_DIR}" ]; then
|
|
pushd "${TEST_DIR}" >/dev/null
|
|
|
|
# If there is a customize_$BOARD script for this board, let's run it.
|
|
# This allows adding settings for specific factories or systems.
|
|
CUSTOMIZE="customize_${BOARD}"
|
|
if [ -e "${CUSTOMIZE}" ]; then
|
|
echo "Running ${CUSTOMIZE}"
|
|
"./${CUSTOMIZE}"
|
|
fi
|
|
|
|
# We don't need the customize script anymore.
|
|
rm -f customize_*
|
|
|
|
popd >/dev/null
|
|
fi
|