• Home
  • Raw
  • Download

Lines Matching +full:script +full:- +full:output

2 # Use of this source code is governed by a BSD-style license that can be
32 # results of non-isolated script tests.
39 # Some build-time scripts import this file and run into issues with
41 # during build-time. So silently swallow the error in that case.
60 # pylint: disable=useless-object-inheritance
73 logging.error('Command output: %s', e.output)
82 ['icacls', acl_dir, '/grant', '*S-1-15-2-2:(OI)(CI)(RX)'],
87 logging.error('Command output: %s', e.output)
100 # D:AI(A;OICI;0x1200a9;;;S-1-15-2-2)(A;OICIID;FA;;;BA)
102 # D:AI(A;ID;0x1200a9;;;S-1-15-2-2)(A;ID;FA;;;BA)(A;ID;0x1301bf;;;BU)
108 if 'S-1-15-2-2' in acl:
113 ['icacls', full_filename, '/grant', '*S-1-15-2-2:(RX)'],
124 parser.add_argument('--build-dir',
125 help='Absolute path to build-dir.',
127 parser.add_argument('--paths', type=parse_json, default={})
129 # script invocation.
130 parser.add_argument('--properties', type=parse_json, default={})
131 # Args contains per-invocation arguments that potentially change the
132 # behavior of the script.
133 parser.add_argument('--args', type=parse_json, default=[])
138 run_parser.add_argument('--output',
141 run_parser.add_argument('--filter-file', type=argparse.FileType('r'))
145 run_parser.add_argument('--output',
172 """Records to a local json file and to RDB the results of the script test.
174 For legacy reasons, local script tests (ie: script tests that run
175 locally and that don't conform to the isolated-test API) are expected to
180 name: Name of the script test.
181 output_fd: A .write()-supporting file descriptor to write results to.
226 # TODO(dpranke): crbug.com/357866 - we should simplify the handling of
235 last_result = actual_results[-1]
262 filepath: A path to a file to write the output to.
264 floating-point offset in seconds from the UNIX epoch.
267 output = {
274 json.dump(output, fh)
277 def get_gtest_summary_passes(output): argument
284 if not output:
289 for cur_iteration_data in output.get('per_iteration_data', []):
293 last_result = results[-1]
304 """Helper for isolated script test wrappers. Parses the
305 --isolated-script-test-filter command line argument. Currently, double-colon
314 '--avd-config',
319 parser.add_argument('--emulator-window',
326 """The base class for all script adapters that need to translate flags
327 set by isolated script test contract into the specific test script's flags.
336 '--isolated-outdir',
340 self._parser.add_argument('--isolated-script-test-output',
344 self._parser.add_argument('--isolated-script-test-filter',
347 self._parser.add_argument('--isolated-script-test-repeat',
350 self._parser.add_argument('--isolated-script-test-launcher-retry-limit',
353 self._parser.add_argument('--isolated-script-test-also-run-disabled-tests',
359 '--xvfb',
363 self._parser.add_argument('--script-type',
365 help='Which script adapter to use')
369 self._parser.add_argument('--isolated-script-test-chartjson-output')
370 self._parser.add_argument('--isolated-script-test-perf-output')
387 def generate_test_output_args(self, output): argument
388 del output # unused
488 'time': time.time() - start_time,
515 except Exception: # pylint: disable=broad-except