Change of correct scipt creation year
Commit-Ready: Rohit Makasana <email@example.com>
Tested-by: Rohit Makasana <firstname.lastname@example.org>
Reviewed-by: Rohit Makasana <email@example.com>
diff --git a/provingground/cts/run_missing_pkg.sh b/provingground/cts/run_missing_pkg.sh
index 47847f2..2778045 100755
@@ -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
-./run_missing_pkg.sh [OPTION] <build_id> <cts_version>
+./run_missing_pkg.sh [build_id] [cts_version]
./run_missing_pkg.sh R64-10075.0.0 7.1_r10
@@ -29,33 +30,35 @@
- # Reading the build number.
+ # Reading the build id.
# Reading the CTS version.
# Extracting ANDROID_VERSION from CTS_VERSION.
# Adding PREFIX for ANDROID_VERSION
if [ $ANDROID_VERSION == 7 ]; then
- echo "CTS version should not be other than 7"
+ echo "This script only works for ANDROID_VERSION 7"
# 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
- #Extracting BOARD name from each csv file.
+ # Extracting BOARD name from each csv file name
BOARD=$(echo $file | cut -d. -f1)
# Initialize to NULL before each csv iteration.
- # 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
@@ -69,10 +72,13 @@
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