summaryrefslogtreecommitdiff
path: root/automated/android/workload-automation/workload-automation.sh
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2018-03-23 04:46:09 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2018-04-09 12:16:05 +0100
commit52179ae1b2f1777b038e60e31432010743619f6a (patch)
tree83ac94428819e87c17871aca1ee616634a708adb /automated/android/workload-automation/workload-automation.sh
parent59920d38a63b57f70cf2c56f042d95ce9faf02a6 (diff)
workload-automation: allow forked WA repository
This patch adds option to use WA from different repository than default ARM's sources. Change-Id: Ic6508f81a7fe5433c9b500f675e517ea489f1843 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'automated/android/workload-automation/workload-automation.sh')
-rwxr-xr-xautomated/android/workload-automation/workload-automation.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/automated/android/workload-automation/workload-automation.sh b/automated/android/workload-automation/workload-automation.sh
index f1992c7..be06326 100755
--- a/automated/android/workload-automation/workload-automation.sh
+++ b/automated/android/workload-automation/workload-automation.sh
@@ -8,6 +8,7 @@ ANDROID_SERIAL=""
BOOT_TIMEOUT="300"
PROBE=""
WA_TAG="master"
+WA_GIT_REPO="https://github.com/ARM-software/workload-automation"
WA_TEMPLATES_REPO="https://git.linaro.org/qa/wa2-lava.git"
TEMPLATES_BRANCH="wa-templates"
CONFIG="config/generic-android.py"
@@ -16,11 +17,11 @@ BUILD_TOOLS_URL="http://testdata.validation.linaro.org/apks/workload-automation/
WA_HOME_URL="http://testdata.validation.linaro.org/apks/workload-automation/workload_automation_home.tar.gz"
usage() {
- echo "Usage: $0 [-s <true|false>] [-S <android_serial>] [-t <boot_timeout>] [-T <wa_tag>] [-r <wa_templates_repo>] [-g <templates_branch>] [-c <config>] [-a <agenda>] [-b <build_tools_url>] [-w <wa_home_url>] [-p <aep_path>] [-o <output_dir>]" 1>&2
+ echo "Usage: $0 [-s <true|false>] [-S <android_serial>] [-t <boot_timeout>] [-T <wa_tag>] [-r <wa_templates_repo>] [-g <templates_branch>] [-c <config>] [-a <agenda>] [-b <build_tools_url>] [-w <wa_home_url>] [-p <aep_path>] [-o <output_dir>] [-R <wa_git_repository>]" 1>&2
exit 1
}
-while getopts ":s:S:t:T:r:g:c:a:b:w:p:o:" opt; do
+while getopts ":s:S:t:T:r:g:c:a:b:w:p:o:R:" opt; do
case "${opt}" in
s) SKIP_INSTALL="${OPTARG}" ;;
S) ANDROID_SERIAL="${OPTARG}" ;;
@@ -32,6 +33,7 @@ while getopts ":s:S:t:T:r:g:c:a:b:w:p:o:" opt; do
a) AGENDA="${OPTARG}" ;;
b) BUILD_TOOLS_URL="${OPTARG}" ;;
w) WA_HOME_URL="${OPTARG}" ;;
+ R) WA_GIT_REPO="${OPTARG}" ;;
p) PROBE="${OPTARG}" ;;
o) NEW_OUTPUT="${OPTARG}" ;;
*) usage ;;
@@ -64,7 +66,7 @@ else
pip install --quiet pexpect pyserial pyyaml docutils python-dateutil
info_msg "Installing workload-automation..."
rm -rf workload-automation
- git clone https://github.com/ARM-software/workload-automation
+ git clone "${WA_GIT_REPO}" workload-automation
(
cd workload-automation
git checkout "${WA_TAG}"