Index: tools/auto_bisect/bisect_perf_regression_test.py |
diff --git a/tools/auto_bisect/bisect_perf_regression_test.py b/tools/auto_bisect/bisect_perf_regression_test.py |
index 80f9e0930871a11a3052739981d4191943c402a0..3b2edbc7a0d994246aefbf3bcd73683ebab94ffb 100644 |
--- a/tools/auto_bisect/bisect_perf_regression_test.py |
+++ b/tools/auto_bisect/bisect_perf_regression_test.py |
@@ -33,6 +33,12 @@ def _GetBisectPerformanceMetricsInstance(): |
class BisectPerfRegressionTest(unittest.TestCase): |
"""Test case for other functions and classes in bisect-perf-regression.py.""" |
+ def setUp(self): |
+ self.cwd = os.getcwd() |
+ |
+ def tearDown(self): |
+ os.chdir(self.cwd) |
+ |
def _AssertConfidence(self, score, bad_values, good_values): |
"""Checks whether the given sets of values have a given confidence score. |
@@ -287,7 +293,7 @@ class BisectPerfRegressionTest(unittest.TestCase): |
def testUpdateDepsContent(self): |
bisect_instance = _GetBisectPerformanceMetricsInstance() |
- deps_file = 'DEPS' |
+ deps_file = os.path.join(bisect_perf_regression.SRC_DIR, 'DEPS') |
# We are intentionally reading DEPS file contents instead of string literal |
# with few lines from DEPS because to check if the format we are expecting |
# to search is not changed in DEPS content. |