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

Unified Diff: common/node_runner/bin/test_node_for_smoke

Issue 2361623007: Add a run_eslint wrapper script (Closed)
Patch Set: Checkpoint. Created 4 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
Index: common/node_runner/bin/test_node_for_smoke
diff --git a/common/node_runner/bin/test_node_for_smoke b/common/node_runner/bin/test_node_for_smoke
index b14585897ba1b47332753cd71157ed8b43311df9..2463f1acad0c4e0b0c308a1026857d58121556e2 100755
--- a/common/node_runner/bin/test_node_for_smoke
+++ b/common/node_runner/bin/test_node_for_smoke
@@ -6,12 +6,10 @@
import os
import sys
-_NODE_RUNNER_PATH = os.path.abspath(
- os.path.join(os.path.dirname(__file__), '..'))
-
-_PY_UTILS_PATH = os.path.abspath(
charliea (OOO until 10-5) 2016/09/23 03:18:23 (I think that this was unused)
- os.path.join(_NODE_RUNNER_PATH, '..', 'py_utils'))
+_ESLINT_PATH = os.path.abspath(
+ os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir,
+ os.path.pardir, 'common', 'eslint'))
def _AddToPathIfNeeded(path):
@@ -20,9 +18,8 @@ def _AddToPathIfNeeded(path):
if __name__ == '__main__':
- _AddToPathIfNeeded(_NODE_RUNNER_PATH)
- _AddToPathIfNeeded(_PY_UTILS_PATH)
+ _AddToPathIfNeeded(_ESLINT_PATH)
- from node_runner import node_util
- print node_util.RunEslint()
+ from eslint import eslint
+ print eslint.RunEslint()
sys.exit(0)

Powered by Google App Engine
This is Rietveld 408576698