Home
last modified time | relevance | path

Searched +full:pylint +full:- +full:exit (Results 1 – 25 of 53) sorted by relevance

123

/third_party/mbedtls/tests/scripts/
Dcheck-python-files.sh4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
7 # hurdles. Run pylint to detect some potential mistakes and enforce PEP8
20 $PYTHON - "$2" <<EOF
28 exit(1)
33 # Pylint 1.5.2 from Ubuntu 16.04 is too old:
34 # E: 34, 0: Unable to import 'mbedtls_dev' (import-error)
35 # Pylint 1.8.3 from Ubuntu 18.04 passed on the first commit containing this line.
36 check_version pylint 1.8.3
46 # With just a --can-xxx option, check whether the tool for xxx is available
47 # with an acceptable version, and exit without running any checks. The exit
[all …]
Ddepends.py4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
16 - domain name, can be used to run only specific tests via command-line;
17 - configuration building method, described in detail below;
18 - list of symbols passed to the configuration building method;
19 - commands to be run on each job (only build, build and test, or any other custom);
20 - optional list of symbols to be excluded from testing.
24 - ComplementaryDomain - build a job for each passed symbol by disabling a single
27 - ExclusiveDomain - build a job where, for each passed symbol, only this particular
29 any non-standard symbols to set/unset in EXCLUSIVE_GROUPS. These are usually not
30 direct dependencies, but rather non-trivial results of other configs missing. Then
[all …]
Dtest_psa_compliance.py4 then compile and run the test suite. The clone is stored at <repository root>/psa-arch-tests.
5 Known defects in either the test suite or mbedtls / TF-PSA-Crypto - identified by their test
6 number - are ignored, while unexpected failures AND successes are reported as errors, to help
11 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 #pylint: disable=unused-import
26 # TF-PSA-Crypto (or the test suite).
29 # psa-arch-tests/api-tests/dev_apis/crypto/test_c0xx
32 PSA_ARCH_TESTS_REPO = 'https://github.com/ARM-software/psa-arch-tests.git'
35 #pylint: disable=too-many-branches,too-many-statements,too-many-locals
49 #pylint: disable=bad-continuation
[all …]
Dgenerate_pkcs7_tests.py4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10 - It is expected that the pkcs7_asn1_fail( data_t *pkcs7_buf )
12 - This is not meant to be portable code, if anything it is meant to serve as
22 class Test: # pylint: disable=too-few-public-methods
31 # pylint: disable=no-self-use
48 # pylint: disable=no-self-use
56 sys.exit()
57 with open(file, "r", encoding='UTF-8') as fp:
68 latest_test_num = float(tests[-1].name.split('#')[1])
78 with open(self.file_name, 'a', encoding='UTF-8') as fw:
[all …]
Dgenerate_test_cert_macros.py9 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
18 #pylint: disable=signature-differs, too-few-public-methods
39 parser.add_argument('--string', type=macro_define_type, action=MacroDefineAction,
41 parser.add_argument('--binary', type=macro_define_type, action=MacroDefineAction,
44 parser.add_argument('--password', type=macro_define_type, action=MacroDefineAction,
46 parser.add_argument('--output', type=str, required=True)
55 #pylint: disable=dangerous-default-value, unused-argument
95 sys.exit(main())
Dcheck_test_cases.py10 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
61 * Individual test cases in ssl-opt.sh.
80 """Return a new per-file state object.
82 The default per-file state object is None. Child classes that require per-file
85 #pylint: disable=no-self-use
91 descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none
109 descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none
110 listed = subprocess.check_output(['sh', script_name, '--list-test-cases'])
112 # test case description between --list-test-cases and its OUTCOME.CSV
123 raise ScriptOutputError(script_name, idx, line.decode("utf-8"))
[all …]
Danalyze_outcomes.py71 outcome_file: str) -> None:
77 shell_command = "tests/scripts/all.sh --outcome-file " + outcome_file + \
86 allow_list: typing.List[str], full_coverage: bool) -> None:
106 def name_matches_pattern(name: str, str_or_re) -> bool:
108 - If the pattern is a string, name must be equal to match.
109 - If the pattern is a regex, name must fully match.
120 ignored_suites: typing.List[str], ignored_tests=None) -> None:
124 - full test suites provided in ignored_suites list
125 - only some specific test inside a test suite, for which the corresponding
144 # Immediately skip fully-ignored test suites
[all …]
Drun_demos.py36 successes = len(demos) - len(failures)
49 # Keep the message on one line. pylint: disable=line-too-long
55 parser.add_argument('--quiet', '-q',
60 sys.exit(0 if success else 1)
/third_party/benchmark/.github/workflows/
Dpylint.yml1 name: pylint
10 pylint:
12 runs-on: ubuntu-latest
15 - uses: actions/checkout@v2
16 - name: Set up Python 3.8
17 uses: actions/setup-python@v1
19 python-version: 3.8
20 - name: Install dependencies
22 python -m pip install --upgrade pip
23 pip install pylint pylint-exit conan
[all …]
/third_party/mindspore/mindspore-src/source/scripts/pre_commit/
Dinstall_generic_tools.sh8 # http://www.apache.org/licenses/LICENSE-2.0
18 if [ $? -eq "1" ]; then
19 exit 1
22 PYTHON_VERSION=$(python --version | awk -F' ' '{print $2}')
25 exit 1
30 exit 1
33 if [ $? -eq "1" ]; then
34 exit 1
38 pip install --upgrade --force-reinstall cmakelint
41 pip install --upgrade --force-reinstall codespell
[all …]
/third_party/googletest/googlemock/test/
Dgmock_test_utils.py34 # pylint: disable=C6204
61 """Returns the argument to exit(), or -1 if exit() wasn't called.
69 # the argument to exit() directly.
72 # On Unix, os.WEXITSTATUS() must be used to extract the exit status
77 return -1
81 # pylint: disable-msg=C6409
90 # pylint: enable-msg=C6409
/third_party/protobuf/third_party/googletest/googlemock/test/
Dgmock_test_utils.py46 # pylint: disable=C6204
73 """Returns the argument to exit(), or -1 if exit() wasn't called.
81 # the argument to exit() directly.
84 # On Unix, os.WEXITSTATUS() must be used to extract the exit status
89 return -1
93 # pylint: disable-msg=C6409
102 # pylint: enable-msg=C6409
/third_party/jerryscript/tools/
Dcheck-pylint.sh9 # http://www.apache.org/licenses/LICENSE-2.0
20 pylint --version &>/dev/null
21 if [ $? -ne 0 ]
23 echo -e "${TERM_RED}Can't run check-pylint because pylint isn't installed.${TERM_NORMAL}\n"
24 exit 1
27 find ./tools ./jerry-debugger -name "*.py" \
28 | xargs pylint --rcfile=tools/pylint/pylintrc
/third_party/mindspore/mindspore-src/source/scripts/pre_commit/githooks/
Dpre-push8 # http://www.apache.org/licenses/LICENSE-2.0
20 CURR_DIR=$(dirname "${BASH_SOURCE-$0}")
22 cd -P "${CURR_DIR}" || exit
23 pwd -P
26 cd -P "${CURR_DIR}/../../../" || exit
27 pwd -P
30 cd -P "${CURR_DIR}/../../../../" || exit
31 pwd -P
35 uname_s=$(uname -s)
41 elif [ "$os_name" == "MINGW" ]; then # MINGW, windows, git-bash
[all …]
/third_party/googletest/googletest/test/
Dgtest_test_utils.py32 # pylint: disable-msg=C6204
46 # pylint: enable-msg=C6204
50 # The environment variable for specifying the path to the premature-exit file.
68 TestCase = _test_module.TestCase # pylint: disable=C6409
81 # here to maintain module-wide state.
82 global _gtest_flags_are_parsed # pylint: disable=W0603
95 prefix = '--' + flag + '='
101 # We don't increment i in case we just found a --gtest_* flag
110 # _ParseAndStripGTestFlags() here to make sure the --gtest_* flags
168 'a path to the binary via the --build_dir flag or the BUILD_DIR\n'
[all …]
/third_party/astc-encoder/Test/
Dastc_test_python.py2 # SPDX-License-Identifier: Apache-2.0
3 # -----------------------------------------------------------------------------
10 # http://www.apache.org/licenses/LICENSE-2.0
17 # -----------------------------------------------------------------------------
28 import pylint.epylint as lint
38 Run pylint over the codebase.
47 with open("pylint.log", "w") as fileHandle:
52 Test that we conform to PEP-8.
67 results = unittest.main(exit=False)
72 sys.exit(main())
/third_party/protobuf/third_party/googletest/googletest/test/
Dgtest_test_utils.py32 # pylint: disable-msg=C6204
52 # pylint: enable-msg=C6204
56 # The environment variable for specifying the path to the premature-exit file.
74 TestCase = _test_module.TestCase # pylint: disable=C6409
87 # here to maintain module-wide state.
88 global _gtest_flags_are_parsed # pylint: disable=W0603
101 prefix = '--' + flag + '='
107 # We don't increment i in case we just found a --gtest_* flag
116 # _ParseAndStripGTestFlags() here to make sure the --gtest_* flags
174 'a path to the binary via the --build_dir flag or the BUILD_DIR\n'
[all …]
/third_party/jerryscript/jerry-debugger/
Djerry_client.py9 # http://www.apache.org/licenses/LICENSE-2.0
35 # pylint: disable=too-many-instance-attributes,too-many-arguments
52 """ Exit JerryScript debugger """
64 print("Non-negative integer number expected, 0 turns off this function")
112 args -= 1
234 # pylint: disable=invalid-name
236 """ Exit JerryScript debugger """
246 debugger.src_offset -= debugger.src_offset_diff
255 print("Error: Non-negative integer number expected")
256 return -1
[all …]
/third_party/mbedtls/scripts/
Dcode_size_compare.py12 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
32 ARMV8_M = 'armv8-m'
40 TFM_MEDIUM = 'tfm-medium'
50 class CodeSizeDistinctInfo: # pylint: disable=too-few-public-methods
53 def __init__( #pylint: disable=too-many-arguments
61 ) -> None:
69 :param: opt_level: Options that control optimization. (E.g. -Os)
83 return '{git_rev}-{arch}-{config}-{compiler}'.format(**self.__dict__)
86 class CodeSizeCommonInfo: # pylint: disable=too-few-public-methods
92 ) -> None:
[all …]
/third_party/mbedtls/scripts/mbedtls_dev/
Dtest_data_generation.py10 # SPDX-License-Identifier: Apache-2.0
16 # http://www.apache.org/licenses/LICENSE-2.0
36 T = TypeVar('T') #pylint: disable=invalid-name
61 # pylint: disable=unused-argument
66 def arguments(self) -> List[str]:
77 def description(self) -> str:
96 def create_test_case(self) -> test_case.TestCase:
108 def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
120 #pylint: disable=too-few-public-methods
134 def generate_tests(cls) -> Iterator[test_case.TestCase]:
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/lite/test/st/scripts/triton/
Dmslite_client.py9 parser.add_argument('-u',
10 '--url',
15 parser.add_argument('-m',
16 '--model',
21 parser.add_argument('--input_name',
26 parser.add_argument('--input_shape',
31 parser.add_argument('--input_data',
36 parser.add_argument('--output_name',
41 parser.add_argument('--output_data',
64 sys.exit(1)
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/dataset/engine/obs/
Dutil.py7 # http://www.apache.org/licenses/LICENSE-2.0
74 Checking that all meta files exit in local.
98 start (int): Start index of sample for non-full dataset file.
99 end (int): End index of sample for non-full dataset file.
137 start = start_idx - pre_cnt
140 end = end_idx - pre_cnt
148 end = end_idx - pre_cnt
222 shard_files.append((dataset_file, -1, -1, True))
240 if end == -1:
269 except Exception as e: # pylint: disable=W0703
[all …]
/third_party/astc-encoder/Test/testlib/
Dencoder.py1 # SPDX-License-Identifier: Apache-2.0
2 # -----------------------------------------------------------------------------
3 # Copyright 2019-2023 Arm Limited
9 # http://www.apache.org/licenses/LICENSE-2.0
16 # -----------------------------------------------------------------------------
63 def build_cli(self, image, blockSize="6x6", preset="-thorough",
71 preset (str): The quality-performance preset to use.
80 # pylint: disable=unused-argument,no-self-use,redundant-returns-doc
93 # pylint: disable=no-self-use
102 sys.exit(1)
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/dataset/engine/
Ddatasets_user_defined.py1 # Copyright 2019-2023 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
133 # just put only one QUIT flag to the sub-thread / sub-process
235 … "You can also increase the limit using `ulimit -n` in the shell "
249 cost_time = int(time.time()) - start_time
330 the current stack (if py-spy installed).
352 install_status, _ = subprocess.getstatusoutput("py-spy --version")
354 stack = subprocess.getoutput("py-spy dump -p {}".format(stuck_pid))
357 warning_message += "You can install py-spy via `pip install py-spy`, then " \
371 _clean_worker_func = _PythonMultiprocessing._clean_process # pylint: disable=W0212
[all …]
/third_party/skia/infra/bots/
Drecipes.py9 # /usr/bin/env: 'python3 -u': No such file or directory
11 # This little shell hack is a triple-quoted noop in python, but in sh it
12 # evaluates to re-exec'ing this script in unbuffered mode.
13 # pylint: disable=pointless-string-statement
14 ''''exec python3 -u -- "$0" ${1+"$@"} # '''
22 This is a copy of https://chromium.googlesource.com/infra/luci/recipes-py/+/main/recipes.py.
26 # pylint: disable=wrong-import-position
36 from io import open # pylint: disable=redefined-builtin
45 # url (str) - the url to the engine repo we want to use.
46 # revision (str) - the git revision for the engine to get.
[all …]

123