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

Unified Diff: tools/isolate/tests/trace_inputs/child1.py

Issue 11045023: Move src/tools/isolate to src/tools/swarm_client as a DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use r159961 Created 8 years, 2 months 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 | « tools/isolate/tests/run_test_from_archive_test.py ('k') | tools/isolate/tests/trace_inputs/child2.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/tests/trace_inputs/child1.py
diff --git a/tools/isolate/tests/trace_inputs/child1.py b/tools/isolate/tests/trace_inputs/child1.py
deleted file mode 100755
index f0ec8c9de425b0af7b144b98073ce7c02e347b6e..0000000000000000000000000000000000000000
--- a/tools/isolate/tests/trace_inputs/child1.py
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 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.
-
-import os
-import subprocess
-import sys
-
-
-def child():
- """When the gyp argument is not specified, the command is started from
- --root-dir directory.
- """
- print 'child from %s' % os.getcwd()
- # Force file opening with a non-normalized path.
- open(os.path.join('tests', '..', 'trace_inputs.py'), 'rb').close()
- open(os.path.join(
- 'tests', '..', 'tests', 'trace_inputs_smoke_test.py'), 'rb').close()
- # Do not wait for the child to exit.
- # Use relative directory.
- subprocess.Popen(
- ['python', 'child2.py'], cwd=os.path.join('tests', 'trace_inputs'))
- return 0
-
-
-def child_gyp():
- """When the gyp argument is specified, the command is started from --cwd
- directory.
- """
- print 'child_gyp from %s' % os.getcwd()
- # Force file opening.
- open(os.path.join('..', 'trace_inputs.py'), 'rb').close()
- open(os.path.join('..', 'tests', 'trace_inputs_smoke_test.py'), 'rb').close()
- # Do not wait for the child to exit.
- # Use relative directory.
- subprocess.Popen(['python', 'child2.py'], cwd='trace_inputs')
- return 0
-
-
-def main():
- if sys.argv[1] == '--child':
- return child()
- if sys.argv[1] == '--child-gyp':
- return child_gyp()
- return 1
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « tools/isolate/tests/run_test_from_archive_test.py ('k') | tools/isolate/tests/trace_inputs/child2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698