Commit 1624979 1 parent afc64fd commit 1624979 Copy full SHA for 1624979
File tree 4 files changed +22
-7
lines changed
4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 6
6
. ../../lib/android-test-lib
7
7
8
8
JDK=" openjdk-8-jdk-headless"
9
+ if [ -n " ${ANDROID_VERSION} " ] && echo " ${ANDROID_VERSION} " | grep -q " aosp-master" ; then
10
+ # only use openjdk-11 for aosp master version
11
+ JDK=" openjdk-11-jdk-headless"
12
+ # elif 8.1/9.0/android10
13
+ # JDK="openjdk-8-jdk-headless"
14
+ fi
9
15
10
16
PKG_DEPS=" coreutils usbutils curl wget zip xz-utils python-lxml python-setuptools python-pexpect aapt lib32z1-dev libc6-dev-i386 lib32gcc1 libc6:i386 libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 python-dev python-protobuf protobuf-compiler python-virtualenv python-pip python-pexpect psmisc"
11
17
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ params:
34
34
# Specify the failures number to be printed
35
35
FAILURES_PRINTED : " 0"
36
36
TEST_REBOOT_EXPECTED : " false"
37
- # leave ANDROID_VERSION here as a stub so that jobs have ANDROID_VERSION specified won't report any problem
38
- # but it is not used any more, the default openjdk-8 will be used for cts/vts test
39
- # and in the future, maybe the jdk package installation is better to be done with the host deploy action
37
+ # used to specify the android version
38
+ # as different jdk version might be used for different android version cts/vts test
39
+ # aosp-master version needs to use openjdk-11, other older versions needs to use openjdk-8
40
+ # for aosp master version, the value of ANDROID_VERSION must have aosp-master in its value
40
41
ANDROID_VERSION : " "
41
42
42
43
run :
Original file line number Diff line number Diff line change 6
6
. ../../lib/android-test-lib
7
7
8
8
JDK=" openjdk-8-jdk-headless"
9
- PKG_DEPS=" usbutils curl wget zip xz-utils python-lxml python-setuptools python-pexpect aapt lib32z1-dev libc6-dev-i386 lib32gcc1 libc6:i386 libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 python-dev python-protobuf protobuf-compiler python-virtualenv python-pip python-pexpect psmisc"
9
+ if [ -n " ${ANDROID_VERSION} " ] && echo " ${ANDROID_VERSION} " | grep -q " aosp-master" ; then
10
+ # only use openjdk-11 for aosp master version
11
+ JDK=" openjdk-11-jdk-headless"
12
+ # elif 8.1/9.0/android10
13
+ # JDK="openjdk-8-jdk-headless"
14
+ fi
15
+
16
+ PKG_DEPS=" coreutils usbutils curl wget zip xz-utils python-lxml python-setuptools python-pexpect aapt lib32z1-dev libc6-dev-i386 lib32gcc1 libc6:i386 libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 python-dev python-protobuf protobuf-compiler python-virtualenv python-pip python-pexpect psmisc"
10
17
11
18
dist_name
12
19
case " ${dist} " in
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ params:
34
34
# Specify the failures number to be printed
35
35
FAILURES_PRINTED : " 0"
36
36
TEST_REBOOT_EXPECTED : " false"
37
- # leave ANDROID_VERSION here as a stub so that jobs have ANDROID_VERSION specified won't report any problem
38
- # but it is not used any more, the default openjdk-8 will be used for cts/vts test
39
- # and in the future, maybe the jdk package installation is better to be done with the host deploy action
37
+ # used to specify the android version
38
+ # as different jdk version might be used for different android version cts/vts test
39
+ # aosp-master version needs to use openjdk-11, other older versions needs to use openjdk-8
40
+ # for aosp master version, the value of ANDROID_VERSION must have aosp-master in its value
40
41
ANDROID_VERSION : " "
41
42
42
43
run :
You can’t perform that action at this time.
0 commit comments