Chromium Code Reviews| Index: mod_for_factory_scripts/600customizeRelease |
| diff --git a/mod_for_factory_scripts/600customizeRelease b/mod_for_factory_scripts/600customizeRelease |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..4975f2d1478b85235f1e2cd11380080e74faa81c |
| --- /dev/null |
| +++ b/mod_for_factory_scripts/600customizeRelease |
| @@ -0,0 +1,22 @@ |
| +#!/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" |
| + |
| +pushd ${TEST_DIR} 1> /dev/null |
|
Hung-Te
2010/11/17 03:50:21
better to be quoted as "${TEST_DIR}". And I think
Nick Sanders
2010/11/17 03:59:15
This is to maintain consistency with other mod_for
|
| + |
| +# 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}" |
|
Hung-Te
2010/11/17 03:50:21
pushd/popd is sometimes buggy, and is bash-only. S
|
| +fi |
| + |
| +# We don't need the customize script anymore. |
| +rm -f customize_* |
| + |
| +popd 1> /dev/null |
|
Hung-Te
2010/11/17 03:50:21
popd >/dev/null
|