Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
unit_test::utils Namespace Reference
Functions | |
| def | is_tool |
| def | execute_program |
Detailed Description
Copyright (c) 2018, Arm Limited
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
UNIT TEST UTILITIES
Function Documentation
| def unit_test::utils::execute_program | ( | args, | |
error_msg = "An error occurred!", |
|||
success_msg = None |
|||
| ) |
Execute program in a subprocess with given arguments @param args: program and its arguments in a list @param success_msg: message to show in case of success @param error_msg: message to show in case of failure
Definition at line 40 of file UNITTESTS/unit_test/utils.py.
| def unit_test::utils::is_tool | ( | name ) |
Test if tool is found in PATH @param name: executable name @return: true if tool found, false otherwise
Definition at line 26 of file UNITTESTS/unit_test/utils.py.
Generated on Tue Aug 9 2022 00:37:40 by
1.7.2