• Home
  • Raw
  • Download

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

3 # Use of this source code is governed by a BSD-style license that can be
32 CHART_JSON_RESULT = 'results-chart.json'
69 self.output = '\n'.join([stdout, stderr])
77 be executed in the Lab environment - for this usecase, either the drone OR
102 output to the caller.
113 It decides browser=[system|cros-chrome]
115 browser=lacros-chrome. It is only valid for remote
138 def _get_telemetry_cmd(self, script, test_or_benchmark, output_format, argument
140 """Build command to execute telemetry based on script and benchmark.
142 @param script: Telemetry script we want to run. For example:
148 chart-json.
149 @param args: additional list of arguments to pass to the script.
151 script.
153 @returns Full telemetry command to execute the script.
170 script,
171 '--output-format=%s' % output_format,
172 '--output-dir=%s' % output_dir,
173 '--browser=system',
176 browser = 'lacros-chrome' if self._is_lacros else 'cros-chrome'
179 script,
180 '--browser=%s' % browser,
181 '--output-format=%s' % output_format,
182 '--output-dir=%s' % output_dir,
183 '--remote=%s' % self._host.hostname,
193 telemetry_cmd.append('--remote-ssh-port=%s' % self._host.port)
196 telemetry_cmd.append('--verbose')
206 @param perf_results_dir: directory path where test output is to be
209 chart-json.
223 scp_cmd.extend(['scp', '-r'])
228 scp_cmd.append('-P %d' % self._host.port)
231 # Use rsync --remove-source-file to move rather than copy from
237 scp_cmd.extend(['rsync', '-avz', '--remove-source-files'])
253 """Execute an command in a external shell and capture the output.
262 output = six.StringIO()
268 stdout_tee=output,
276 stdout = output.getvalue()
282 def _run_telemetry(self, script, test_or_benchmark, output_format, *args, argument
286 @param script: Telemetry script we want to run. For example:
291 @param args: additional list of arguments to pass to the script.
293 script.
300 telemetry_cmd = self._get_telemetry_cmd(script, test_or_benchmark,
334 def _run_test(self, script, test, *args): argument
337 @param script: Which telemetry test script we want to run. Can be
338 telemetry's base test script or the ChromeOS specific
339 test script.
341 @param args: additional list of arguments to pass to the script.
347 telemetry_script = os.path.join(self._telemetry_path, script)
359 execution script.
379 execution script.
381 telemetry execution script.
412 (benchmark, result.output))
416 (benchmark, result.output))
417 elif '[ PASSED ] 0 tests.' in result.output:
420 % (benchmark, result.output))
432 execution script.
437 script = os.path.join(DUT_CHROME_ROOT, TELEMETRY_RUN_GPU_TESTS_SCRIPT)
441 script
463 # Example output, fetch_benchmark_deps.py --output-deps=deps octane:
474 f'--output-deps={deps_path} {test_name}')
493 logging.info('Copying: %s -> %s', src, dst)
540 smaller_postfixes = ('_smallerIsBetter', '-')
550 unit = unit[:-len(postfix)]
617 python run_benchmark --browser=cros-chrome --remote=[dut] [test]
620 ssh [dut] python run_benchmark --browser=system [test]
633 the chroot. Prefer chrome-src-internal source tree to chrome-src.
636 CHROME_LOCAL_SRC = '/var/cache/chromeos-cache/distfiles/target/'
641 sources_list = ('chrome-src-internal', 'chrome-src')
677 python run_benchmark --browser=cros-chrome --remote=[dut] [test]
680 ssh [dut] python run_benchmark --browser=system [test]