Skip to content

Commit

Permalink
tools/ci.sh: Adding new functions for psoc6 ci port.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Aug 7, 2023
1 parent 71300ff commit 8b691c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,17 @@ function ci_psoc6_deploy {
}

function ci_psoc6_flash_multiple_devices {
# hex file including path with respect to micropython root
hex_file=$1
docker exec mtb-ci make program_multi_ext_hex EXT_HEX_FILE=${hex_file}
docker exec mtb-ci make program_multi_ext_hex EXT_HEX_FILE=../../${hex_file}
}

function ci_psoc6_run_tests {
docker exec mtb-ci /bin/bash -c "cd ../../tests && ./run-tests.py --target psoc6 --device /dev/ttyACM0 -d psoc6"
}

function ci_psoc6_teardown {
# mkdir ${GITHUB_WORKSPACE}
docker stop mtb-ci
docker rm mtb-ci
docker image prune -all
}

########################################################################################
Expand Down

0 comments on commit 8b691c8

Please sign in to comment.