Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: src/scripts/mod_for_factory_scripts/500copyQualDb

Issue 1755012: Make modify-image-for-factory scripts more readable. (Closed) Base URL: ssh://git@chromiumos-git/chromiumos
Patch Set: Fix comments Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 # Assume that we run HWQual test before and generate the system component file.
8 # The file is placed in (XXXX is a random number):
9 # /tmp/run_remote_tests.XXXX/hardware_Components/results/system_components
10 #
11 # QUALDB can be a full path of the file, or a specified directory
12 # /tmp/run_remote_tests.XXXX, or a default wildcard one /tmp/run_remote_tests.*.
13
14 # If QUALDB is a default wildcard directory, try to use the most recent one.
15 QUALDB=$(ls -dt ${QUALDB} 2>&-| head -1)
16
17 # Try to append the full path to the file if QUALDB is a directory.
18 if [ ! -z ${QUALDB} ] && [ -d ${QUALDB} ]; then
19 QUALDB="${QUALDB}/hardware_Components/results/system_components"
20 fi
21
22 if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then
23 # Copy the qualified component file to the image
24 echo "Copying ${QUALDB} to the image."
25 mkdir -p ${ROOT_FS_DIR}/usr/local/manufacturing
26 cp -f ${QUALDB} \
27 ${ROOT_FS_DIR}/usr/local/manufacturing/qualified_components
28 else
29 echo "No qualified component file found at: ${QUALDB}"
30 fi
OLDNEW
« no previous file with comments | « src/scripts/mod_for_factory_scripts/300modifyDescription ('k') | src/scripts/mod_for_factory_scripts/factory.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698