Bug 1458020 - 6. Use separate emulator config for geckoview-junit tests; r?gbrown draft
authorJim Chen <nchen@mozilla.com>
Thu, 17 May 2018 19:41:14 -0400
changeset 796621 5c49abab40f80e7c323cfda06f817d604165abde
parent 796620 e7095dd931b6d9559c3230d44536b029e75b7520
push id110315
push userbmo:nchen@mozilla.com
push dateThu, 17 May 2018 23:41:44 +0000
reviewersgbrown
bugs1458020
milestone62.0a1
Bug 1458020 - 6. Use separate emulator config for geckoview-junit tests; r?gbrown The geckoview-junit tests require the OSS audio backend for the Android 4.3 ARM emulator, but mochitests don't work well with the OSS audio backend. Therefore, use a different config file for the geckoview-junit tests. MozReview-Commit-ID: 20tzjtVdTuB
taskcluster/ci/test/misc.yml
testing/mozharness/configs/android/androidarm_4_3_junit.py
--- a/taskcluster/ci/test/misc.yml
+++ b/taskcluster/ci/test/misc.yml
@@ -42,17 +42,17 @@ geckoview-junit:
                 android-4.2-x86/opt:
                     - android/android_common.py
                     - android/androidx86.py
                 android-7.0-x86/opt:
                     - android/android_common.py
                     - android/androidx86_7_0.py
                 android.*:
                     - android/android_common.py
-                    - android/androidarm_4_3.py
+                    - android/androidarm_4_3_junit.py
         extra-options:
             - --test-suite=geckoview-junit
 
 robocop:
     description: "Robocop run"
     suite: robocop
     treeherder-symbol: M(rc)
     instance-size: xlarge
new file mode 100644
--- /dev/null
+++ b/testing/mozharness/configs/android/androidarm_4_3_junit.py
@@ -0,0 +1,33 @@
+# mozharness configuration for Android 4.3 geckoview-junit tests
+#
+# This configuration should be combined with suite definitions and other
+# mozharness configuration from android_common.py, or similar.
+
+config = {
+    "deprecated_sdk_path": True,
+    "tooltool_manifest_path": "testing/config/tooltool-manifests/androidarm_4_3/releng.manifest",
+    "emulator_manifest": """
+        [
+        {
+        "size": 38451805,
+        "digest": "ac3000aa6846dd1b09a420a1ba84727e393036f49da1419d6c9e5ec2490fc6105c74ca18b616c465dbe693992e2939afd88bc2042d961a9050a3cafd2a673ff4",
+        "algorithm": "sha512",
+        "filename": "android-sdk_r24.0.2a-linux.tar.gz",
+        "unpack": "True"
+        }
+        ] """,
+    "emulator_process_name": "emulator64-arm",
+    "emulator_extra_args": "-show-kernel -debug init,console,gles,memcheck,adbserver,adbclient,adb,avd_config,socket -audio oss",
+    "exes": {
+        'adb': '%(abs_work_dir)s/android-sdk-linux/platform-tools/adb',
+    },
+    "env": {
+        "DISPLAY": ":0.0",
+        "PATH": "%(PATH)s:%(abs_work_dir)s/android-sdk-linux/tools:%(abs_work_dir)s/android-sdk-linux/platform-tools",
+        "MINIDUMP_SAVEPATH": "%(abs_work_dir)s/../minidumps"
+    },
+    "emulator": {
+        "name": "test-1",
+        "device_id": "emulator-5554",
+    },
+}