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

Side by Side Diff: src/scripts/mod_image_for_test.sh

Issue 1147005: Fix the path of results due to the test name change (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to modify a keyfob-based chromeos system image for testability. 7 # Script to modify a keyfob-based chromeos system image for testability.
8 8
9 # Load common constants. This should be the first executable line. 9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location. 10 # The path to common.sh should be relative to your script's location.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 # Run manufacturing test setup 106 # Run manufacturing test setup
107 if [ ${FLAGS_manuf} -eq ${FLAGS_TRUE} ]; then 107 if [ ${FLAGS_manuf} -eq ${FLAGS_TRUE} ]; then
108 echo "Modifying image ${FLAGS_image} for manufacturing test..." 108 echo "Modifying image ${FLAGS_image} for manufacturing test..."
109 109
110 # Try to use the sytem component file in the most recent autotest result 110 # Try to use the sytem component file in the most recent autotest result
111 FLAGS_qualdb=$(ls -dt ${FLAGS_qualdb} 2>&-| head -1) 111 FLAGS_qualdb=$(ls -dt ${FLAGS_qualdb} 2>&-| head -1)
112 112
113 # Try to append the full path to the file if FLAGS_qualdb is a directory 113 # Try to append the full path to the file if FLAGS_qualdb is a directory
114 if [ ! -z ${FLAGS_qualdb} ] && [ -d ${FLAGS_qualdb} ]; then 114 if [ ! -z ${FLAGS_qualdb} ] && [ -d ${FLAGS_qualdb} ]; then
115 # TODO(waihong): Handle multiple results to deliver to multiple images 115 # TODO(waihong): Handle multiple results to deliver to multiple images
116 FLAGS_qualdb="${FLAGS_qualdb}/platform_Components,*" 116 FLAGS_qualdb="${FLAGS_qualdb}/hardware_Components,*"
117 FLAGS_qualdb=$(ls -dt ${FLAGS_qualdb} 2>&-| head -1) 117 FLAGS_qualdb=$(ls -dt ${FLAGS_qualdb} 2>&-| head -1)
118 FLAGS_qualdb="${FLAGS_qualdb}/platform_Components/results/system_components" 118 FLAGS_qualdb="${FLAGS_qualdb}/hardware_Components/results/system_components"
119 fi 119 fi
120 120
121 if [ ! -z ${FLAGS_qualdb} ] && [ -f ${FLAGS_qualdb} ]; then 121 if [ ! -z ${FLAGS_qualdb} ] && [ -f ${FLAGS_qualdb} ]; then
122 # Copy the qualified component file to the image 122 # Copy the qualified component file to the image
123 echo "Copying ${FLAGS_qualdb} to the image." 123 echo "Copying ${FLAGS_qualdb} to the image."
124 sudo mkdir -p ${ROOT_FS_DIR}/usr/local/manufacturing 124 sudo mkdir -p ${ROOT_FS_DIR}/usr/local/manufacturing
125 sudo cp -f ${FLAGS_qualdb} \ 125 sudo cp -f ${FLAGS_qualdb} \
126 ${ROOT_FS_DIR}/usr/local/manufacturing/qualified_components 126 ${ROOT_FS_DIR}/usr/local/manufacturing/qualified_components
127 else 127 else
128 echo "No qualified component file found at: ${FLAGS_qualdb}" 128 echo "No qualified component file found at: ${FLAGS_qualdb}"
129 exit 1 129 exit 1
130 fi 130 fi
131 fi 131 fi
132 132
133 cleanup 133 cleanup
134 trap - EXIT 134 trap - EXIT
135 135
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698