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

Unified Diff: googletest/fix_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/README.py ('k') | googletest/isolate_test_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: googletest/fix_test_cases.py
diff --git a/fix_test_cases.py b/googletest/fix_test_cases.py
similarity index 96%
rename from fix_test_cases.py
rename to googletest/fix_test_cases.py
index 3b28925aacd7b5974023df9e0f4189a7b2339015..49563365e4560f0c75356742673691e8d2415b91 100755
--- a/fix_test_cases.py
+++ b/googletest/fix_test_cases.py
@@ -18,11 +18,15 @@ import subprocess
import sys
import tempfile
+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)
+
import isolate
import isolate_test_cases
+import run_isolated
import run_test_cases
-ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
def with_tempfile(function):
@@ -122,7 +126,8 @@ def trace_some(tempfilepath, isolated, test_cases, verbosity):
with open(tempfilepath, 'w') as f:
f.write('\n'.join(test_cases))
cmd = [
- sys.executable, os.path.join(ROOT_DIR, 'isolate_test_cases.py'),
+ sys.executable, os.path.join(
+ ROOT_DIR, 'googletest', 'isolate_test_cases.py'),
'--isolated', isolated,
'--test-case-file', tempfilepath,
# Do not use --run-all here, we assume the test cases will pass inside the
@@ -210,7 +215,7 @@ def fix_all(isolated, all_test_cases, verbosity):
def main():
- run_test_cases.run_isolated.disable_buffering()
+ run_isolated.disable_buffering()
parser = run_test_cases.OptionParserTestCases(
usage='%prog <options> -s <something.isolated>')
parser.add_option(
« no previous file with comments | « googletest/README.py ('k') | googletest/isolate_test_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698