Android O SDK.
[android_tools.git] / sdk / platform-tools / systrace / catapult / common / node_runner / bin / test_node_for_smoke
blobb14585897ba1b47332753cd71157ed8b43311df9
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.
6 import os
7 import sys
9 _NODE_RUNNER_PATH = os.path.abspath(
10 os.path.join(os.path.dirname(__file__), '..'))
13 _PY_UTILS_PATH = os.path.abspath(
14 os.path.join(_NODE_RUNNER_PATH, '..', 'py_utils'))
17 def _AddToPathIfNeeded(path):
18 if path not in sys.path:
19 sys.path.insert(0, path)
22 if __name__ == '__main__':
23 _AddToPathIfNeeded(_NODE_RUNNER_PATH)
24 _AddToPathIfNeeded(_PY_UTILS_PATH)
26 from node_runner import node_util
27 print node_util.RunEslint()
28 sys.exit(0)