takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

unit_test::utils Namespace Reference

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.