Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to include integration test in app_launcher #1870

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions starboard/tools/app_launcher_packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ def main(command_args):
'--return_list',
action='store_true',
help='Return the application resources instead of printing them.')
parser.add_argument(
'--include_integration_tests',
action='store_true',
help='Include integration test files and dependencies.')
parser.add_argument(
'-v',
'--verbose',
Expand All @@ -232,11 +236,13 @@ def main(command_args):
log_level.InitializeLogging(args)

if args.destination_root:
CopyAppLauncherTools(REPOSITORY_ROOT, args.destination_root)
CopyAppLauncherTools(
REPOSITORY_ROOT, args.destination_root, include_black_box_tests=False)
elif args.zip_file:
try:
temp_dir = tempfile.mkdtemp(prefix='cobalt_app_launcher_')
CopyAppLauncherTools(REPOSITORY_ROOT, temp_dir)
CopyAppLauncherTools(
REPOSITORY_ROOT, temp_dir, include_black_box_tests=False)
MakeZipArchive(temp_dir, args.zip_file)
finally:
shutil.rmtree(temp_dir)
Expand Down