1# Copyright 2019 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import common 6 7 8class GpuIntegrationTestAdapater(common.BaseIsolatedScriptArgsAdapter): 9 10 def generate_test_output_args(self, output): 11 return ['--write-full-results-to', output] 12 13 def generate_test_also_run_disabled_tests_args(self): 14 return ['--all'] 15 16 def generate_test_filter_args(self, test_filter_str): 17 # isolated_script_test_filter comes in like: 18 # WebglExtension_WEBGL_depth_texture::conformance/textures/misc/copytexsubimage2d-subrects.html # pylint: disable=line-too-long 19 return ['--test-filter=%s' % test_filter_str] 20 21 def generate_sharding_args(self, total_shards, shard_index): 22 return [ 23 '--total-shards=%d' % total_shards, 24 '--shard-index=%d' % shard_index 25 ] 26 27 def generate_test_launcher_retry_limit_args(self, retry_limit): 28 return ['--retry-limit=%d' % retry_limit] 29 30 def generate_test_repeat_args(self, repeat_count): 31 return ['--repeat=%d' % repeat_count] 32