summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-11-16 09:36:12 +0700
committerhathach <[email protected]>2022-11-16 09:36:12 +0700
commitd17eb94e848fe0bab4a26e18cd5961bd51953c65 (patch)
tree51161ee19df0547667e37b32ca3757e64fcda8d2
parenta6d9fda5f902726bb073541a122ab93ebc976730 (diff)
only print flash output if failed
-rw-r--r--.github/workflows/test_hardware.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/test_hardware.yml b/.github/workflows/test_hardware.yml
index f8124c496..3ef1fdc56 100644
--- a/.github/workflows/test_hardware.yml
+++ b/.github/workflows/test_hardware.yml
@@ -43,7 +43,8 @@ jobs:
echo >> flash.sh 'echo r >> flash.jlink'
echo >> flash.sh 'echo go >> flash.jlink'
echo >> flash.sh 'echo exit >> flash.jlink'
- echo >> flash.sh 'JLinkExe -device stm32l412kb -if swd -JTAGConf -1,-1 -speed auto -CommandFile flash.jlink'
+ echo >> flash.sh 'cmdout=$(JLinkExe -device stm32l412kb -if swd -JTAGConf -1,-1 -speed auto -NoGui 1 -ExitOnError 1 -CommandFile flash.jlink)'
+ echo >> flash.sh 'if (( $? )) ; then echo $cmdout ; fi'
chmod +x flash.sh
- name: Test cdc_dual_ports