Bug 1342963 - only run jsreftests when js/src/* changes. r=dustin

MozReview-Commit-ID: 2stKqaayBHY
This commit is contained in:
Joel Maher 2017-03-01 14:36:45 -05:00
parent 71318f787d
commit 810d6c683a
2 changed files with 10 additions and 0 deletions

View File

@ -318,6 +318,10 @@ jsreftest:
- remove_executables.py
extra-options:
- --reftest-suite=jsreftest
when:
files-changed:
- js/src/**
- js/public/**
marionette:
description: "Marionette unittest run"

View File

@ -271,6 +271,11 @@ test_description_schema = Schema({
# the product name, defaults to firefox
Optional('product'): basestring,
# conditional files to determine when these tests should be run
Optional('when'): Any({
Optional('files-changed'): [basestring],
}),
}, required=True)
@ -633,6 +638,7 @@ def make_job_description(config, tests):
jobdesc['name'] = name
jobdesc['label'] = label
jobdesc['description'] = test['description']
jobdesc['when'] = test.get('when', {})
jobdesc['attributes'] = attributes
jobdesc['dependencies'] = {'build': build_label}
jobdesc['expires-after'] = test['expires-after']