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

Unified Diff: third_party/WebKit/Tools/Scripts/test-webkitpy

Issue 2554503004: Add running unit tests to run-bindings-tests. (Closed)
Patch Set: Landing in 4... 3... Created 4 years 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
Index: third_party/WebKit/Tools/Scripts/test-webkitpy
diff --git a/third_party/WebKit/Tools/Scripts/test-webkitpy b/third_party/WebKit/Tools/Scripts/test-webkitpy
index 4e2c7bd7633166853b7468b7677a11afb087c1ac..cb02d92a96a58e179712de8db2d87c8231f12283 100755
--- a/third_party/WebKit/Tools/Scripts/test-webkitpy
+++ b/third_party/WebKit/Tools/Scripts/test-webkitpy
@@ -31,13 +31,8 @@
import os
import sys
-dirname = os.path.dirname
-scripts_dir = dirname(os.path.realpath(__file__))
-chromium_src_dir = dirname(dirname(dirname(dirname(scripts_dir))))
-
-path_to_typ = os.path.join(chromium_src_dir, 'third_party', 'typ')
-if path_to_typ not in sys.path:
- sys.path.append(path_to_typ)
+from webkitpy.common import webkit_finder
+webkit_finder.add_typ_dir_to_sys_path()
import typ
@@ -54,7 +49,7 @@ if sys.platform == 'win32':
'webkitpy.layout_tests.layout_package.bot_test_expectations_unittest.*',
]
-sys.exit(typ.main(top_level_dir=scripts_dir,
+sys.exit(typ.main(top_level_dir=webkit_finder.get_scripts_dir(),
skip=skip,
- path=[os.path.join(scripts_dir, 'webkitpy', 'thirdparty')],
+ path=[webkit_finder.get_webkitpy_thirdparty_dir()],
win_multiprocessing='spawn'))

Powered by Google App Engine
This is Rietveld 408576698