1#!/usr/bin/env python 2# 3# Copyright 2021 The ANGLE Project Authors. All rights reserved. 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6""" Merges dEQP sharded test results in the ANGLE testing infrastucture.""" 7 8import os 9import sys 10 11 12def _AddToPathIfNeeded(path): 13 if path not in sys.path: 14 sys.path.insert(0, path) 15 16 17_AddToPathIfNeeded( 18 os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'src', 'tests', 'py_utils'))) 19import angle_path_util 20 21angle_path_util.AddDepsDirToPath('testing/merge_scripts') 22import merge_api 23import standard_isolated_script_merge 24 25 26def main(raw_args): 27 28 parser = merge_api.ArgumentParser() 29 args = parser.parse_args(raw_args) 30 31 # TODO(jmadill): Merge QPA files into one. http://anglebug.com/5236 32 33 return standard_isolated_script_merge.StandardIsolatedScriptMerge( 34 args.output_json, args.summary_json, args.jsons_to_merge) 35 36 37if __name__ == '__main__': 38 sys.exit(main(sys.argv[1:])) 39