---
$inherits:
  from: 'tasks/tests/fx_desktop_generic.yml'
task:
  scopes:
    - 'docker-worker:capability:device:loopbackVideo'
  payload:
    maxRunTime: 28800
    capabilities:
      devices:
        loopbackVideo: true
    command:
      - --no-read-buildbot-config
      - --installer-url={{build_url}}
      - --test-packages-url={{test_packages_url}}
      - --mochitest-suite=valgrind-plain
      - --total-chunk={{total_chunks}}
      - --this-chunk={{chunk}}
    env:
      MOZHARNESS_SCRIPT: 'mozharness/scripts/desktop_unittest.py'
      MOZHARNESS_CONFIG: >
        mozharness/configs/unittests/linux_unittest.py
        mozharness/configs/remove_executables.py
  metadata:
    name: '[TC] Linux64 mochitest-valgrind-{{chunk}}'
    description: Mochitest Valgrind
  extra:
    chunks:
      total: 40
    treeherder:
      groupName: Mochitest Valgrind
      groupSymbol: M-vg
      symbol: {{chunk}}
