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

Unified Diff: tests/trace_inputs_smoke_test.py

Issue 24813003: Move file path functions into utils/file_path.py. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/tools/swarm_client@master
Patch Set: Fix isolate_test_cases_smoke_test.py Created 7 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 | « tests/isolate_test.py ('k') | tests/trace_inputs_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/trace_inputs_smoke_test.py
diff --git a/tests/trace_inputs_smoke_test.py b/tests/trace_inputs_smoke_test.py
index 6c98eaae2a367fff4c154f9c8b54e5ddd56056a2..2ce06f729fb00fc5b8a8834e533517cc5f0e6662 100755
--- a/tests/trace_inputs_smoke_test.py
+++ b/tests/trace_inputs_smoke_test.py
@@ -18,6 +18,7 @@ ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, ROOT_DIR)
import trace_inputs
+from utils import file_path
from utils import threading_utils
FILENAME = os.path.basename(__file__)
@@ -72,9 +73,9 @@ class TraceInputsBase(unittest.TestCase):
# So it'll look like /usr/bin/python2.7
self.executable += suffix
- self.real_executable = trace_inputs.get_native_path_case(
+ self.real_executable = file_path.get_native_path_case(
unicode(self.executable))
- self.tempdir = trace_inputs.get_native_path_case(
+ self.tempdir = file_path.get_native_path_case(
unicode(tempfile.mkdtemp(prefix='trace_smoke_test')))
self.log = os.path.join(self.tempdir, 'log')
@@ -452,7 +453,7 @@ class TraceInputsImport(TraceInputsBase):
def blacklist(f):
return f.endswith(('.pyc', 'do_not_care.txt', '.git', '.svn'))
simplified = trace_inputs.extract_directories(
- trace_inputs.get_native_path_case(unicode(ROOT_DIR)),
+ file_path.get_native_path_case(unicode(ROOT_DIR)),
results.files,
blacklist)
self.assertEqual(files, [f.path for f in simplified])
« no previous file with comments | « tests/isolate_test.py ('k') | tests/trace_inputs_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698