Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt draft
authorJohan Lorenzo <jlorenzo@mozilla.com>
Wed, 06 Jan 2016 17:34:36 +0100
changeset 319346 0127f51d0c5c69728c2b8f777326e9a5364d6ad9
parent 319345 26b0d88998d6c75e2723f7c0e01b97d8c0badbf4
child 512574 babf0626c2416c6bd0304ae9b18feb46898957ac
push id9009
push userjlorenzo@mozilla.com
push dateWed, 06 Jan 2016 16:42:25 +0000
reviewersgarndt
bugs1236947
milestone46.0a1
Bug 1236947 - [tc-gip] Retrieve and store logcat r=garndt
testing/taskcluster/tasks/phone_test.yml
--- a/testing/taskcluster/tasks/phone_test.yml
+++ b/testing/taskcluster/tasks/phone_test.yml
@@ -25,16 +25,17 @@ task:
       MOZ_BUILD_DATE: '{{pushdate}}'
       GAIA_HEAD_REPOSITORY: '{{{gaia_head_repository}}}'
       GAIA_BASE_REPOSITORY: '{{{gaia_base_repository}}}'
       GAIA_REF: '{{{gaia_ref}}}'
       GAIA_REV: '{{{gaia_rev}}}'
       TESTS_TIMEOUT_IN_MS: 30000
       MANIFEST_PATH: gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/manifest.ini
       MANIFEST_INCLUDE_EXCLUDE: b2g-dsds
+      LOGCAT_FILE_MAX_SIZE_IN_KB: 102400
 
     log: 'private/b2g/logs/live.log'
 
     # All builds share a common artifact directory for ease of uploading.
     artifacts:
       'private/b2g/device.json':
         type: file
         path: '/home/worker/data/device.json'
@@ -53,16 +54,22 @@ task:
         phone:
           type: 'flame'
           memory: '512'
           sims: '0'
           build: '{{{img_url}}}'
 
     command:
       - >
+        adb logcat
+        -v threadtime
+        -r LOGCAT_FILE_MAX_SIZE_IN_KB
+        &> /home/worker/upload/logs/logcat.log
+
+      - >
         gaiatest
         --total-chunks={{total_chunks}}
         --this-chunk={{chunk}}
         --testvars=/home/worker/data/gaia_testvars.json
         --testvars=/home/worker/data/device.json
         --adb-host=$PROXY_HOST
         --adb-port=$ADB_PORT
         --address=$PROXY_HOST:$MARIONETTE_PORT