Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 126) sorted by relevance

123456

/tools/asuite/atest-py2/
Datest_utils_unittest.py22 import sys
33 if sys.version_info[0] == 2:
168 sys.stdout = capture_output
171 sys.stdout = sys.__stdout__
178 sys.stdout = capture_output
181 sys.stdout = sys.__stdout__
189 sys.stdout = capture_output
192 sys.stdout = sys.__stdout__
200 sys.stdout = capture_output
203 sys.stdout = sys.__stdout__
[all …]
Datest_unittest.py21 import sys
33 if sys.version_info[0] == 2:
117 sys.stdout = capture_output
123 sys.stdout = sys.__stdout__
138 sys.stdout = capture_output
143 sys.stdout = sys.__stdout__
190 sys.stdout = capture_output
194 sys.stdout = sys.__stdout__
Datest_completion.sh23 import sys
25 sys.path.append(os.getenv('ATEST_DIR'))
47 import sys
50 sys.path.append(atest_dir)
/tools/test/connectivity/acts/framework/
Dsetup.py23 import sys
52 if sys.version_info < (3, 6):
57 elif sys.version_info < (3, 7):
66 if sys.version_info < (3, ):
93 stdout=sys.stdout,
94 stderr=sys.stderr,
97 sys.exit(result.returncode)
118 install_args = [sys.executable, '-m', 'pip', 'install']
163 if framework_dir in sys.path:
164 sys.path.remove(framework_dir)
[all …]
/tools/repohooks/tools/
Dpylint.py22 import sys
26 assert (sys.version_info.major, sys.version_info.minor) >= (3, 6), (
27 'Python 3.6 or newer is required; found %s' % (sys.version,))
41 'support cannot be guaranteed' % (__file__,), file=sys.stderr)
59 'sudo apt-get install pylint' % (__file__,), file=sys.stderr)
60 sys.exit(1)
120 file=sys.stderr)
122 (__file__, os.path.basename(cmd[0])), file=sys.stderr)
129 sys.exit(main(sys.argv[1:]))
Dclang-format.py20 import sys
23 if sys.path[0] != _path:
24 sys.path.insert(0, _path)
85 print('clang-format failed:\n%s' % (e,), file=sys.stderr)
86 print('\nPlease report this to the clang team.', file=sys.stderr)
108 file=sys.stderr)
115 (sys.argv[0], rh.shell.cmd_to_str(argv)))
122 sys.exit(main(sys.argv[1:]))
Dgoogle-java-format.py20 import sys
24 if sys.path[0] != _path:
25 sys.path.insert(0, _path)
96 (sys.argv[0], rh.shell.cmd_to_str(argv)))
103 sys.exit(main(sys.argv[1:]))
Dandroid_test_mapping_format.py29 import sys
33 if sys.path[0] != _path:
34 sys.path.insert(0, _path)
154 file=sys.stderr)
192 'file.' % _TEST_MAPPING_URL, file=sys.stderr)
197 sys.exit(main(sys.argv[1:]))
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiSoftApAcsTest.py20 import sys
267 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
276 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
285 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
294 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
303 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
312 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
321 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
330 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
339 avoid_chan = int(sys._getframe().f_code.co_name.split('_')[-1])
[all …]
/tools/asuite/atest/
Datest_utils_unittest.py24 import sys
190 sys.stdout = capture_output
193 sys.stdout = sys.__stdout__
200 sys.stdout = capture_output
203 sys.stdout = sys.__stdout__
211 sys.stdout = capture_output
214 sys.stdout = sys.__stdout__
222 sys.stdout = capture_output
225 sys.stdout = sys.__stdout__
232 sys.stdout = capture_output
[all …]
Datest_run_unittests.py21 import sys
29 RUN_COVERAGE = COVERAGE in sys.argv
30 SHOW_MISSING = '--show-missing' in sys.argv
89 sys.exit(not result.wasSuccessful())
90 sys.exit(0)
104 sys.exit(not result.wasSuccessful())
112 if len(sys.argv) > 1:
Datest_unittest.py23 import sys
120 sys.stdout = capture_output
126 sys.stdout = sys.__stdout__
141 sys.stdout = capture_output
146 sys.stdout = sys.__stdout__
195 sys.stdout = capture_output
199 sys.stdout = sys.__stdout__
Datest.py33 import sys
267 sys.exit(constants.EXIT_CODE_ERROR)
389 sys.exit(constants.EXIT_CODE_ENV_NOT_SETUP)
393 sys.exit(constants.EXIT_CODE_ERROR)
395 sys.exit(constants.EXIT_CODE_ERROR)
397 sys.exit(constants.EXIT_CODE_ERROR)
594 sys.exit(constants.EXIT_CODE_OUTSIDE_ROOT)
599 sys.exit(constants.EXIT_CODE_SUCCESS)
602 sys.exit(constants.EXIT_CODE_SUCCESS)
606 sys.exit(constants.EXIT_CODE_SUCCESS)
[all …]
/tools/repohooks/
Dpre-upload.py25 import sys
29 if sys.version_info < (3, 6):
30 print('repohooks: error: Python-3.6+ is required', file=sys.stderr)
31 sys.exit(1)
35 if sys.path[0] != _path:
36 sys.path.insert(0, _path)
140 print(warning, file=sys.stderr)
151 print(error, file=sys.stderr)
245 file=sys.stderr)
248 'attempting to upload again.\n', file=sys.stderr)
[all …]
/tools/test/connectivity/acts/framework/tests/
Dtest_suite.py19 import sys
62 test_result = subprocess.Popen([sys.executable, test_files[index]],
74 file=sys.stderr)
76 print(out_file.read(), file=sys.stderr)
81 file=sys.stderr)
83 print(out_file.read(), file=sys.stderr)
87 print('The following tests failed:', file=sys.stderr)
89 print(' ', failure, file=sys.stderr)
/tools/test/connectivity/acts_tests/
Dsetup.py20 import sys
57 command = [sys.executable, acts_setup_bin, option, *args]
107 install_args = [sys.executable, '-m', 'pip', 'install']
154 if our_dir in sys.path:
155 sys.path.remove(our_dir)
157 if os.getcwd() in sys.path:
158 sys.path.remove(os.getcwd())
170 del sys.modules['acts_contrib']
/tools/test/connectivity/acts_tests/tests/google/bt/
Drelay_tool.py39 import sys
70 file=sys.stderr)
94 min_line_indentation = sys.maxsize
105 if min_line_indentation == sys.maxsize:
114 file=sys.stderr)
145 (repr(args.command[0]), repr(func_names)), file=sys.stderr)
160 args.command[0], file=sys.stderr)
168 file=sys.stderr)
/tools/repohooks/rh/
Dterminal.py21 import sys
24 if sys.path[0] != _path:
25 sys.path.insert(0, _path)
102 self._enabled = is_tty(sys.stderr)
128 if is_tty(sys.stderr):
135 sys.stderr.write(output)
136 sys.stderr.flush()
Dconfig_test.py21 import sys
103 print('error: %s' % (e,), file=sys.stderr)
110 sys.exit(main(sys.argv[1:]))
/tools/acloud/
Dsetup.py26 import sys
64 sys.stderr.write("Can't find required file: %s\n" % source)
65 sys.exit(-1)
68 sys.stderr.write(
72 sys.exit(-1)
76 sys.exit(-1)
Dacloud_test.py21 import sys
40 if sys.version_info.major == 3:
41 sys.path.insert(0, os.path.dirname(sysconfig.get_paths()['purelib']))
88 sys.exit(not result.wasSuccessful())
92 main(sys.argv[1:])
/tools/acloud/public/
Dacloud_main.py75 import sys
81 if (sys.version_info.major == 2
82 and sys.version_info.minor == 7
83 and sys.version_info.micro < 13):
85 (sys.version_info.major, sys.version_info.minor,
86 sys.version_info.micro))
97 sys.exit(1)
102 if sys.version_info.major == 3:
103 sys.path.insert(0, os.path.dirname(sysconfig.get_paths()['purelib']))
269 sys.exit(constants.EXIT_BY_WRONG_CMD)
[all …]
/tools/treble/split/
Dmanifest_split.py80 import sys
89 stream=sys.stdout,
611 print(__doc__, file=sys.stderr)
612 print("**%s**" % str(err), file=sys.stderr)
613 sys.exit(2)
632 print(__doc__, file=sys.stderr)
633 sys.exit()
666 print(__doc__, file=sys.stderr)
667 print("**Missing targets**", file=sys.stderr)
668 sys.exit(2)
[all …]
/tools/asuite/atest/asuite_lib_test/
Dasuite_lib_run_tests.py19 import sys
62 for path in sys.path:
64 sys.path.remove(path)
73 sys.exit(not result.wasSuccessful())
77 main(sys.argv[1:])
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Dandroid_api.py18 import sys
35 LATEST = sys.maxsize
36 MAX = sys.maxsize

123456