Commit fb46bea7 authored by Wez's avatar Wez Committed by Commit Bot

[fuchsia] Remove unused exe_runner.py script.

Change-Id: I7d356012e6acb40b6305a43ed537796c313c1dd1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2050476
Auto-Submit: Wez <wez@chromium.org>
Reviewed-by: default avatarMichael Spang <spang@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741458}
parent 1a0f367c
#!/usr/bin/env python
#
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Deploys and executes a packaged Fuchsia executable on a target."""
import argparse
import logging
import sys
from common_args import AddCommonArgs, ConfigureLogging, \
GetDeploymentTargetForArgs
from run_package import RunPackage, RunPackageArgs
def main():
parser = argparse.ArgumentParser()
AddCommonArgs(parser)
parser.add_argument(
'--child-arg',
action='append',
help='Arguments for the executable.',
default=[])
parser.add_argument(
'child_args', nargs='*', help='Arguments for the executable.', default=[])
args = parser.parse_args()
ConfigureLogging(args)
with GetDeploymentTargetForArgs(args) as target:
target.Start()
child_args = args.child_arg + args.child_args
run_package_args = RunPackageArgs.FromCommonArgs(args)
returncode = RunPackage(args.output_directory, target, args.package,
args.package_name, child_args, run_package_args)
if __name__ == '__main__':
sys.exit(main())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment