Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: mojo/dart/observatory_tester/runner.py

Issue 1545483003: Dart: Reorganize files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix build file Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/dart/observatory_test/pubspec.yaml ('k') | mojo/dart/observatory_tester/tester.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/observatory_tester/runner.py
diff --git a/mojo/dart/observatory_tester/runner.py b/mojo/dart/observatory_tester/runner.py
deleted file mode 100755
index 4cd1b4b5d02b23edfef4dfcc4883289da3547945..0000000000000000000000000000000000000000
--- a/mojo/dart/observatory_tester/runner.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/python
-# Copyright 2015 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.
-
-"""This script runs the Observatory tests in the mojo tree."""
-
-import argparse
-import os
-import subprocess
-import sys
-
-MOJO_SHELL = 'mojo_shell'
-TESTEE = 'mojo:dart_observatory_test'
-
-def main(build_dir, dart_exe, tester_script):
- shell_exe = os.path.join(build_dir, MOJO_SHELL)
- subprocess.check_call([
- dart_exe,
- tester_script,
- shell_exe,
- TESTEE
- ])
-
-if __name__ == '__main__':
- parser = argparse.ArgumentParser(
- description="List filenames of files in the packages/ subdir of the "
- "given directory.")
- parser.add_argument("--build-dir",
- dest="build_dir",
- metavar="<build-directory>",
- type=str,
- required=True,
- help="The directory containing mojo_shell.")
- parser.add_argument("--dart-exe",
- dest="dart_exe",
- metavar="<package-name>",
- type=str,
- required=True,
- help="Path to dart executable.")
- args = parser.parse_args()
- tester_dir = os.path.dirname(os.path.realpath(__file__))
- tester_dart_script = os.path.join(tester_dir, 'tester.dart');
- sys.exit(main(args.build_dir, args.dart_exe, tester_dart_script))
« no previous file with comments | « mojo/dart/observatory_test/pubspec.yaml ('k') | mojo/dart/observatory_tester/tester.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698