aboutsummaryrefslogtreecommitdiff
path: root/android-lcr
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2019-04-01 02:00:12 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2019-03-31 18:09:53 +0000
commitba4ee1f3dde21b660a7555eb415811e458acd544 (patch)
tree1429867788db539656137eb4d41ea85608d7008e /android-lcr
parent26c29fa03d5897326865d0c892f673a2d0fe0fc8 (diff)
android-lcr submit_for_testing.sh: fix dry-run problem
when try to dry run on lava Change-Id: I01b314d2005f17da9707127ba852ecb977540497 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'android-lcr')
-rwxr-xr-xandroid-lcr/common/submit_for_testing.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/android-lcr/common/submit_for_testing.sh b/android-lcr/common/submit_for_testing.sh
index 4a0beebb..bdcda2bd 100755
--- a/android-lcr/common/submit_for_testing.sh
+++ b/android-lcr/common/submit_for_testing.sh
@@ -16,7 +16,14 @@ if [ -n "${DRY_RUN}" ]; then
## path of this android-lcr/common/submit_for_testing.sh
## make BASE_PATH to point to the configs directory
PARENT_DIR=$(cd $(dirname $0); pwd)
- export BASE_PATH=${PARENT_DIR}/../../
+ BASE_PATH=${PARENT_DIR}/../../
+ if [ ! -e ${BASE_PATH}/openembedded-lkft/submit_for_testing.py ]; then
+ ## called via jenkins
+ rm -rf configs
+ git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+ BASE_PATH=`pwd`/configs
+ fi
+ export BASE_PATH
else
## called via jenkins
rm -rf configs
@@ -68,10 +75,10 @@ export VTS_PKG_URL=${VTS_PKG_URL}
[ -z "${ANDROID_VERSION_SUFFIX}" ] && unset ANDROID_VERSION_SUFFIX
-[ ! -z ${TEST_TEMPLATES} ] && unset TEST_TEMPLATES
+[ -n ${TEST_TEMPLATES} ] && unset TEST_TEMPLATES
DEVICE_PLAN=${PLAN_CHANGE:-"plan_change_${DEVICE_TYPE}"}
-if [ ! -n "$GERRIT_PROJECT" ]; then
+if [ -z "$GERRIT_PROJECT" ]; then
DEVICE_PLAN=${PLAN_WEEKLY:-"plan_weekly_${DEVICE_TYPE}"}
fi