Change of correct scipt creation year
BUG=b:68749021
TEST=None
Change-Id: I5b192059c4478c45520681c5c7afb550dc69a4e2
Reviewed-on: https://chromium-review.googlesource.com/989859
Commit-Ready: Rohit Makasana <rohitbm@chromium.org>
Tested-by: Rohit Makasana <rohitbm@chromium.org>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
diff --git a/provingground/cts/run_missing_pkg.sh b/provingground/cts/run_missing_pkg.sh
index 47847f2..2778045 100755
--- a/provingground/cts/run_missing_pkg.sh
+++ b/provingground/cts/run_missing_pkg.sh
@@ -3,20 +3,21 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This script with "build id" and "cts version" passed as an argument will
-# fetch all .csv files in the current directory to schedule missing package
-# of respective boards identified using individual .csv file name (i.e rename
-# each .csv file to reflect its exact borad name by which the framework can
-# identify specific board after downloading from plx dashboard)
-# Copying run_missing_pck.sh at ~/chromiumos/src/scripts makes the script
-# available in chroot. The chroot env is required to schedule missing test runs
-# using test_that.
+# This script uses "build id" and "cts version" as an argument.It
+# fetches all ".csv" files in the current directory to schedule missing packages
+# of respective boards identified through its file name (note: naming
+# each .csv file should match standard board name by which framwork recognize
+# it correctly) An example for proper board name is "veyron_tiger" instead of
+# "tiger". Copy "run_missing_pkg.sh" script and all ".csv" files(Missing Tests)
+# downloaded from plx dashboard to ~/chromiumos/src/scripts to make them
+# available in chroot environment(cros_sdk). This script must be used only in
+# chroot enviroment and make it as an executable.
# Usage information
usage_info() {
cat <<EOF
Usage:
-./run_missing_pkg.sh [OPTION] <build_id> <cts_version>
+./run_missing_pkg.sh [build_id] [cts_version]
Sample usage:
./run_missing_pkg.sh R64-10075.0.0 7.1_r10
EOF
@@ -29,33 +30,35 @@
exit 0
fi
- # Reading the build number.
+ # Reading the build id.
BUILD=$1
# Reading the CTS version.
CTS_VERSION=$2
# Extracting ANDROID_VERSION from CTS_VERSION.
- ANDROID_VERSION="${CTS_VERSION%.*}"
+ ANDROID_VERSION=${CTS_VERSION%.*}
# Adding PREFIX for ANDROID_VERSION
if [ $ANDROID_VERSION == 7 ]; then
PREFIX="cheets_CTS_N"
else
- echo "CTS version should not be other than 7"
+ echo "This script only works for ANDROID_VERSION 7"
exit 1
fi
# Iterating all csv files from the current directory.
+ # Eg:asuka.csv,banon.csv,veyron_tiger.csv etc(For board name convention
+ # refer the comments in the header section)
for file in *.csv
do
- #Extracting BOARD name from each csv file.
+ # Extracting BOARD name from each csv file name
BOARD=$(echo $file | cut -d. -f1)
echo $BOARD
# Initialize to NULL before each csv iteration.
PACKAGE_SYNTAX=""
LIST_OF_PACKAGES=""
- # This skips the header of each csv file and blank lines if available.
+ # This skips header of each csv file and blank lines if available.
PROCESSED_CSV=$(cut -d, -f1,2 $file | sed 1d | sed /^$/d)
for i in $PROCESSED_CSV
do
@@ -69,10 +72,13 @@
done
test_that :lab: --max_runtime_mins 600 -b $BOARD -i \
$BOARD-release/$BUILD -p cts $LIST_OF_PACKAGES &
- # This sleep time will make sure test_that to produce the job id during
- # exectuion followed by the former board name(echo $BORAD) one by one
- # properly on the console for respective boards.
- sleep 15
+ # Below sleep time can be adjusted as per the user need. This
+ # timer should be set in a way "test_that" should get enough
+ # time to execute and produce the job id for each run before
+ # moving to the next board. Proper sleep time result in
+ # cleaner console message i.e Board name followed by
+ # test_that syntax used and its job id sequencially.
+ sleep 40
done
}