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

Unified Diff: tools/auto_bisect/run_tests

Issue 548233002: Add a module to fetch builds from different types of builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove print in run_tests and move changes to sys.path into main. Created 6 years, 3 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/auto_bisect/fetch_build_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/auto_bisect/run_tests
diff --git a/tools/auto_bisect/run_tests b/tools/auto_bisect/run_tests
index 0ee241e388ac51662f4883b1f2c8ae4c3d996ee3..f078331514295205328558e3db09d8f7de7a8369 100755
--- a/tools/auto_bisect/run_tests
+++ b/tools/auto_bisect/run_tests
@@ -9,12 +9,16 @@ import os
import sys
import unittest
+SRC = os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir)
+
def main():
+ # Running the tests depends on having the below modules in PYTHONPATH.
+ sys.path.append(os.path.join(SRC, 'tools', 'telemetry'))
+ sys.path.append(os.path.join(SRC, 'third_party', 'pymock'))
+
suite = unittest.TestSuite()
loader = unittest.TestLoader()
-
- # Add all tests in the directory.
script_dir = os.path.dirname(__file__)
suite.addTests(loader.discover(start_dir=script_dir, pattern='*_test.py'))
« no previous file with comments | « tools/auto_bisect/fetch_build_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698