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

Unified Diff: mod_for_factory_scripts/500copyQualDb

Issue 2965013: If qualified components not specified, use the one based on board name. (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mod_image_for_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_for_factory_scripts/500copyQualDb
diff --git a/mod_for_factory_scripts/500copyQualDb b/mod_for_factory_scripts/500copyQualDb
index cf734e0f593efd38b0b642735c7715a6a0d76e2d..9f48039191cb91ae4408887a1445b7734282fac4 100755
--- a/mod_for_factory_scripts/500copyQualDb
+++ b/mod_for_factory_scripts/500copyQualDb
@@ -4,22 +4,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# Assume that we run HWQual test before and generate the system component file.
-# The file is placed in (XXXX is a random number):
-# /tmp/run_remote_tests.XXXX/hardware_Components/results/system_components
-#
-# QUALDB can be a full path of the file, or a specified directory
-# /tmp/run_remote_tests.XXXX, or a default wildcard one /tmp/run_remote_tests.*.
+TEST_DIR="${ROOT_FS_DIR}/usr/local/autotest/site_tests/hardware_Components"
+COMPONENTS_FILE="${TEST_DIR}/qualified_components"
-COMPONENTS_FILE="${ROOT_FS_DIR}/usr/local/autotest/site_tests/"\
-"hardware_Components/qualified_components"
-
-# If QUALDB is a default wildcard directory, try to use the most recent one.
-QUALDB=$(ls -dt ${QUALDB} 2>&-| head -1)
-
-# Try to append the full path to the file if QUALDB is a directory.
-if [ ! -z ${QUALDB} ] && [ -d ${QUALDB} ]; then
- QUALDB="${QUALDB}/hardware_Components/results/system_components"
+# If QUALDB not specified, use the one based on board name.
+if [ -z ${QUALDB} ]; then
+ QUALDB="${TEST_DIR}/qualified_components_${BOARD}"
fi
if [ ! -z ${QUALDB} ] && [ -f ${QUALDB} ]; then
« no previous file with comments | « no previous file | mod_image_for_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698