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

Unified Diff: dummy_test.py

Issue 9978016: Modify the sharding supervisor to support sharding only a sub-shard of a test suite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/tools/sharding_supervisor/
Patch Set: Created 8 years, 9 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 | « no previous file | sharding_supervisor.py » ('j') | sharding_supervisor.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dummy_test.py
===================================================================
--- dummy_test.py (revision 0)
+++ dummy_test.py (revision 0)
@@ -0,0 +1,12 @@
+#!/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.
+
+"""Dummy test used by the sharding supervisor unittests."""
+
+import os
+
+total = os.environ['GTEST_TOTAL_SHARDS']
+index = os.environ['GTEST_SHARD_INDEX']
+print 'Running shard %s of %s' % (index, total)
Property changes on: dummy_test.py
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « no previous file | sharding_supervisor.py » ('j') | sharding_supervisor.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698