OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/factory_WriteGBB" |
| 8 |
| 9 pushd ${TEST_DIR} 1> /dev/null |
| 10 |
| 11 GBB_FILE="gbb_${BOARD}*" |
| 12 FIRST_GBB_FILE=$(ls $GBB_FILE 2> /dev/null | head -1) |
| 13 if [ -e "${FIRST_GBB_FILE}" -o "${BOARD}" = "x86-generic" ]; then |
| 14 # Remove GBB files belonging to other boards |
| 15 ls gbb* 2> /dev/null | grep -v gbb_${BOARD} | xargs rm -f |
| 16 else |
| 17 echo "No GBB file found at: ${GBB_FILE}" |
| 18 fi |
| 19 |
| 20 popd 1> /dev/null |
OLD | NEW |