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

Unified Diff: swarm_client/googletest/shard_test_cases.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 1 month 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
Index: swarm_client/googletest/shard_test_cases.py
===================================================================
--- swarm_client/googletest/shard_test_cases.py (revision 235167)
+++ swarm_client/googletest/shard_test_cases.py (working copy)
@@ -1,46 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2013 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.
-
-"""Runs a google-test shard.
-
-This makes a simple interface to run a shard on the command line independent of
-the interpreter, e.g. cmd.exe vs bash.
-"""
-
-import optparse
-import os
-import subprocess
-import sys
-
-ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-if not ROOT_DIR in sys.path:
- sys.path.insert(0, ROOT_DIR)
-
-from utils import tools
-
-
-def main():
- tools.disable_buffering()
- parser = optparse.OptionParser(usage='%prog <options> [gtest]')
- parser.disable_interspersed_args()
- parser.add_option(
- '-I', '--index',
- type='int',
- default=os.environ.get('GTEST_SHARD_INDEX'),
- help='Shard index to run')
- parser.add_option(
- '-S', '--shards',
- type='int',
- default=os.environ.get('GTEST_TOTAL_SHARDS'),
- help='Total number of shards to calculate from the --index to run')
- options, args = parser.parse_args()
- env = os.environ.copy()
- env['GTEST_TOTAL_SHARDS'] = str(options.shards)
- env['GTEST_SHARD_INDEX'] = str(options.index)
- return subprocess.call(tools.fix_python_path(args), env=env)
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « swarm_client/googletest/run_test_cases.py ('k') | swarm_client/googletest/tests/fix_test_cases_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698