esptest.tools.copy_bin module
- class esptest.tools.copy_bin.BuildFilesPatterns[source]
Bases:
object- BIN_FILES = ['*.bin', 'bootloader/*.bin', 'partition_table/*.bin', 'partition_table/*.csv', 'flasher_args.json', 'flash_args', 'flash_project_args', 'config/sdkconfig.json', 'sdkconfig']
- MAP_AND_ELF_FILES = ['project_description.json', 'bootloader/*.map', 'bootloader/*.elf', '*.map', '*.elf', 'dependencies.lock', 'build_log.txt', 'size.json']
- esptest.tools.copy_bin.copy_bin_to_new_path(from_dir, to_path, *, zip_output=False, force=True, copy_elf=True, extra_files=None)[source]
Copy build files to new path
- Parameters:
from_dir (str) – the app build directory. eg: ./build/
to_path (str) – Destination directory or zip file to save the bin files.
zip_output (bool, optional) – Zip the destination directory. Defaults to False.
force (bool, optional) – Delete the destination dir if it is already exists. Defaults to True.
copy_elf (bool, optional) – Copy elf and map files as well. Defaults to True.
extra_files (Optional[List[str]], optional) – . Defaults to None.
- Return type:
None