Bug 1436037 - [python] Create Windows python-test tasks, r=gps

The following python-test paths are being moved out of 'make check' and into their own task:
- python/mozlint
- testing/mozbase
- tools/lint

The following python-test paths previously did not run on Windows:
- python/mozterm
- testing/marionette
- testing/raptor
- tools/tryselect

Differential Revision: https://phabricator.services.mozilla.com/D10759

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Halberstadt 2018-12-05 19:20:16 +00:00
parent 6f42a07813
commit ce87b08ac4
20 changed files with 42 additions and 19 deletions

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozlint, os == "linux"
subsuite = mozlint
skip-if = python == 3
[test_cli.py]

View File

@ -4,11 +4,14 @@ job-defaults:
worker-type:
by-platform:
linux64.*: aws-provisioner-v1/gecko-t-linux-xlarge
windows10-64.*: aws-provisioner-v1/gecko-t-win10-64
worker:
by-platform:
linux64.*:
docker-image: {in-tree: "lint"}
max-run-time: 3600
default:
max-run-time: 3600
treeherder:
kind: test
tier: 2
@ -34,6 +37,9 @@ taskgraph-tests:
marionette-harness:
description: testing/marionette/harness unit tests
platform:
- linux64/opt
- windows10-64/opt
python-version: [2]
treeherder:
symbol: mnh
@ -89,6 +95,9 @@ mochitest-harness:
mozbase:
description: testing/mozbase unit tests
platform:
- linux64/opt
- windows10-64/opt
python-version: [2, 3]
treeherder:
symbol: mb
@ -115,6 +124,9 @@ mozharness:
mozlint:
description: python/mozlint unit tests
platform:
- linux64/opt
- windows10-64/opt
python-version: [2]
treeherder:
symbol: ml
@ -140,6 +152,9 @@ mozrelease:
mozterm:
description: python/mozterm unit tests
platform:
- linux64/opt
- windows10-64/opt
python-version: [2, 3]
treeherder:
symbol: term
@ -164,6 +179,9 @@ mozversioncontrol:
raptor:
description: testing/raptor unit tests
platform:
- linux64/opt
- windows10-64/opt
python-version: [2]
treeherder:
symbol: rap
@ -215,6 +233,9 @@ reftest-harness:
tryselect:
description: tools/tryselect unit tests
platform:
- linux64/opt
- windows10-64/opt
python-version: [2]
treeherder:
symbol: try

View File

@ -4,6 +4,8 @@
from __future__ import absolute_import
import os
import manifestparser
import mozunit
import pytest
@ -296,7 +298,7 @@ def test_add_test_directory(runner):
runner.add_test(test_dir)
assert isdir.called and walk.called
for test in runner.tests:
assert test_dir in test['filepath']
assert os.path.normpath(test_dir) in test['filepath']
assert len(runner.tests) == 2

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test_expressionparser.py]
[test_manifestparser.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test_basic.py]
[test_java_exception.py]

View File

@ -1,3 +1,3 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test_socket_connection.py]
[test_is_app_installed.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test_extract.py]
[test_load.py]
[test_move_remove.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[api.py]
skip-if = python == 3
[baseurl.py]

View File

@ -1,3 +1,3 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test_binary.py]
[test_install.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test_logger.py]
skip-if = python == 3
[test_logtypes.py]

View File

@ -1,4 +1,4 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test_detached.py]
skip-if = os == "win" # Bug 1493796

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test_addonid.py]
[test_server_locations.py]
[test_preferences.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
# We skip these tests in automated Windows builds because they trigger crashes
# in sh.exe; see bug 1489277.
skip-if = python == 3 || (automation && os == "win")

View File

@ -1,3 +1,3 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test_resource_monitor.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
skip-if = python == 3
[test.py]
[test_resolve.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite = mozbase, os == "linux"
subsuite = mozbase
[test_binary.py]
[test_apk.py]

View File

@ -1,5 +1,5 @@
[DEFAULT]
subsuite=mozlint, os == "linux"
subsuite = mozlint
skip-if = python == 3
[test_eslint.py]