Bug 1383750 - run stylo tests for the "x64" try platform; r=dustin

This commit is contained in:
Nathan Froyd 2017-08-01 17:14:04 -04:00
parent 9788ece7db
commit 88ff15a541
2 changed files with 12 additions and 6 deletions

View File

@ -229,10 +229,12 @@ class TestTryOptionSyntax(unittest.TestCase):
]))
def test_u_platforms_pretty(self):
"-u gtest[Ubuntu] selects the linux, linux64 and linux64-asan platforms for gtest"
"""-u gtest[Ubuntu] selects the linux, linux64, linux64-asan, linux64-stylo,
and linux64-stylo-sequential platforms for gtest"""
tos = TryOptionSyntax('try: -u gtest[Ubuntu]', graph_with_jobs)
self.assertEqual(sorted(tos.unittests), sorted([
{'test': 'gtest', 'platforms': ['linux32', 'linux64', 'linux64-asan']},
{'test': 'gtest', 'platforms': ['linux32', 'linux64', 'linux64-asan',
'linux64-stylo', 'linux64-stylo-sequential']},
]))
def test_u_platforms_negated(self):

View File

@ -113,12 +113,16 @@ UNITTEST_ALIASES = {
# unittest platforms can be specified by substring of the "pretty name", which
# is basically the old Buildbot builder name. This dict has {pretty name,
# [test_platforms]} translations, This includes only the most commonly-used
# substrings. This is intended only for backward-compatibility. New test
# platforms should have their `test_platform` spelled out fully in try syntax.
# substrings. It is OK to add new test platforms to various shorthands here;
# if you add a new Linux64 test platform for instance, people will expect that
# their previous methods of requesting "all linux64 tests" will include this
# new platform, and they shouldn't have to explicitly spell out the new platform
# every time for such cases.
#
# Note that the test platforms here are only the prefix up to the `/`.
UNITTEST_PLATFORM_PRETTY_NAMES = {
'Ubuntu': ['linux32', 'linux64', 'linux64-asan'],
'x64': ['linux64', 'linux64-asan'],
'Ubuntu': ['linux32', 'linux64', 'linux64-asan', 'linux64-stylo', 'linux64-stylo-sequential'],
'x64': ['linux64', 'linux64-asan', 'linux64-stylo', 'linux64-stylo-sequential'],
'Android 4.3': ['android-4.3-arm7-api-15'],
'10.10': ['macosx64'],
# other commonly-used substrings for platforms not yet supported with