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

Side by Side Diff: common/node_runner/bin/test_node_for_smoke

Issue 2361623007: Add a run_eslint wrapper script (Closed)
Patch Set: Synced to head Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « common/eslint/eslint/smoke_test.py ('k') | common/node_runner/node_runner/node_util.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7 import sys
8
9 _NODE_RUNNER_PATH = os.path.abspath(
10 os.path.join(os.path.dirname(__file__), '..'))
11
12
13 _PY_UTILS_PATH = os.path.abspath(
14 os.path.join(_NODE_RUNNER_PATH, '..', 'py_utils'))
15
16
17 def _AddToPathIfNeeded(path):
18 if path not in sys.path:
19 sys.path.insert(0, path)
20
21
22 if __name__ == '__main__':
23 _AddToPathIfNeeded(_NODE_RUNNER_PATH)
24 _AddToPathIfNeeded(_PY_UTILS_PATH)
25
26 from node_runner import node_util
27 print node_util.RunEslint()
28 sys.exit(0)
OLDNEW
« no previous file with comments | « common/eslint/eslint/smoke_test.py ('k') | common/node_runner/node_runner/node_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698