mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
Bug 1580914 - Ensure config environment before generating test-info report; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D46359 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
9c34641992
commit
c25975635c
@ -41,6 +41,20 @@ test-info-fission:
|
||||
index:
|
||||
product: source
|
||||
job-name: test-info-fission
|
||||
worker:
|
||||
docker-image: {in-tree: debian7-amd64-build}
|
||||
run-on-projects: ['mozilla-central']
|
||||
fetches:
|
||||
toolchain:
|
||||
- linux64-clang
|
||||
- linux64-clang-tidy
|
||||
- linux64-rust
|
||||
- linux64-cbindgen
|
||||
- linux64-nasm
|
||||
- linux64-node
|
||||
run:
|
||||
mach: test-info report --show-tests --show-summary --filter-keys=fail-if,skip-if --filter-values='(?<!!)fission' --output-file /builds/worker/artifacts/test-info-fission.json
|
||||
using: run-task
|
||||
cwd: '{checkout}'
|
||||
command: >-
|
||||
source taskcluster/scripts/misc/source-test-common.sh &&
|
||||
./mach test-info report --show-tests --show-summary --filter-keys=fail-if,skip-if --filter-values='(?<!!)fission' --output-file /builds/worker/artifacts/test-info-fission.json
|
||||
|
@ -1213,6 +1213,7 @@ class TestInfoCommand(MachCommandBase):
|
||||
filter_values, filter_keys, show_components, output_file):
|
||||
import mozpack.path as mozpath
|
||||
import re
|
||||
from mozbuild.build_commands import Build
|
||||
from moztest.resolve import TestResolver
|
||||
|
||||
def matches_filters(test):
|
||||
@ -1246,6 +1247,13 @@ class TestInfoCommand(MachCommandBase):
|
||||
else:
|
||||
filter_values = []
|
||||
|
||||
try:
|
||||
self.config_environment
|
||||
except BuildEnvironmentNotFoundException:
|
||||
print("Looks like configure has not run yet, running it now...")
|
||||
builder = Build(self._mach_context)
|
||||
builder.configure()
|
||||
|
||||
print("Finding tests...")
|
||||
resolver = self._spawn(TestResolver)
|
||||
tests = list(resolver.resolve_tests(paths=paths, flavor=flavor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user