Module Expr Str Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore NameLoad Return NameLoad decorator_list Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body If BoolOpAnd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list
N/A N/A 
mbed SDK
Copyright (c) 2011-2015 ARM Limited

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.

Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
 N/A os shutil copy host_test_plugins HostTestPluginBase HostTestPluginCopyMethod_Mbed N/A HostTestPluginBase N/A N/A  Generic flashing method for mbed-enabled devices (by copy)
     generic_mbed_copy N/A N/A self image_path destination_disk N/A N/A N/A ! Generic mbed copy method for "mbed enabled" devices.

        @param image_path Path to binary file to be flashed
        @param destination_disk Path to destination (mbed mount point)

        @details It uses standard python shutil function to copy image_file (target specific binary) to device's disk.

        @return Returns True if copy (flashing) was successful
         N/A result True N/A N/A N/A N/A N/A destination_disk endswith / N/A N/A N/A destination_disk endswith \ N/A N/A destination_disk / N/A N/A N/A N/A copy image_path destination_disk N/A N/A N/A Exception N/A e N/A N/A N/A N/A self print_plugin_error N/A shutil.copy('%s', '%s') N/A image_path destination_disk N/A N/A N/A self print_plugin_error N/A Error: %s N/A str e N/A result False N/A result N/A N/A name HostTestPluginCopyMethod_Mbed N/A type CopyMethod N/A stable True N/A capabilities N/A shutil default N/A required_parameters N/A image_path destination_disk setup N/A N/A self N/A args kwargs N/A N/A  Configure plugin, this function should be called before plugin execute() method is used.
         N/A True N/A execute N/A N/A self capability N/A args kwargs N/A N/A ! Executes capability by name.
        @details Each capability may directly just call some command line program or execute building pythonic function
        @return Returns True if 'capability' operation was successful
         N/A N/A N/A kwargs N/A image_path N/A N/A N/A N/A self print_plugin_error Error: image path not specified N/A False N/A N/A N/A kwargs N/A destination_disk N/A N/A N/A N/A self print_plugin_error Error: destination disk not specified N/A False N/A result False N/A N/A N/A self check_parameters capability args kwargs N/A N/A N/A N/A kwargs N/A image_path N/A kwargs N/A destination_disk N/A N/A N/A capability shutil N/A N/A image_path N/A N/A N/A os path normpath N/A kwargs N/A image_path N/A destination_disk N/A N/A N/A os path normpath N/A kwargs N/A destination_disk N/A N/A N/A self check_mount_point_ready destination_disk N/A result N/A N/A self generic_mbed_copy image_path destination_disk N/A result N/A N/A load_plugin N/A N/A N/A N/A N/A  Returns plugin available in this module
     N/A N/A HostTestPluginCopyMethod_Mbed N/A