mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 21:33:59 +08:00
[contrib] validate_failures.py: Read in manifest when comparing build dirs
This allows comparison of two build directories with a manifest listing known flaky tests on the side. contrib/ChangeLog: * testsuite-management/validate_failures.py (GetResults): Update. (CompareBuilds): Read in manifest.
This commit is contained in:
parent
b713de1ce5
commit
5f8cc7f00c
@ -420,9 +420,10 @@ def CollectSumFiles(builddir):
|
||||
return sum_files
|
||||
|
||||
|
||||
def GetResults(sum_files):
|
||||
def GetResults(sum_files, build_results = None):
|
||||
"""Collect all the test results from the given .sum files."""
|
||||
build_results = ResultSet()
|
||||
if build_results == None:
|
||||
build_results = ResultSet()
|
||||
for sum_fname in sum_files:
|
||||
print('\t%s' % sum_fname)
|
||||
build_results |= ParseSummary(sum_fname)
|
||||
@ -567,8 +568,15 @@ def CompareBuilds():
|
||||
sum_files = GetSumFiles(_OPTIONS.results, _OPTIONS.build_dir)
|
||||
actual = GetResults(sum_files)
|
||||
|
||||
clean = ResultSet()
|
||||
|
||||
if _OPTIONS.manifest:
|
||||
manifest_path = GetManifestPath(srcdir, target, True)
|
||||
print('Manifest: %s' % manifest_path)
|
||||
clean = GetManifest(manifest_path)
|
||||
|
||||
clean_sum_files = GetSumFiles(_OPTIONS.results, _OPTIONS.clean_build)
|
||||
clean = GetResults(clean_sum_files)
|
||||
clean = GetResults(clean_sum_files, clean)
|
||||
|
||||
return PerformComparison(clean, actual, _OPTIONS.ignore_missing_failures)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user