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

Unified Diff: googletest/run_test_cases.py

Issue 19917006: Move all googletest related scripts into googletest/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Remove unnecessary pylint warning disable Created 7 years, 5 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 | « googletest/list_test_cases.py ('k') | googletest/shard_test_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: googletest/run_test_cases.py
diff --git a/run_test_cases.py b/googletest/run_test_cases.py
similarity index 99%
rename from run_test_cases.py
rename to googletest/run_test_cases.py
index 094fff139020e32e518c250c0cde2c241a057156..9b8d72d8e6ac035f8ef9ffd1fb22355a70ad076b 100755
--- a/run_test_cases.py
+++ b/googletest/run_test_cases.py
@@ -25,10 +25,11 @@ import time
from xml.dom import minidom
import xml.parsers.expat
-import run_isolated
+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)
-# Scripts using run_test_cases as a library expect this function.
-from run_isolated import fix_python_path
+import run_isolated
# These are known to influence the way the output is generated.
@@ -1600,7 +1601,7 @@ def process_args(argv):
if options.run_all and options.max_failures is not None:
parser.error('Use only one of --run-all or --max-failures')
- return parser, options, fix_python_path(args)
+ return parser, options, run_isolated.fix_python_path(args)
def main(argv):
« no previous file with comments | « googletest/list_test_cases.py ('k') | googletest/shard_test_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698