@@ -20,7 +20,7 @@ function run_test() {
20
20
fi
21
21
22
22
if [[ $is_target == " false" ]] || [[ $selected_platform == " false" ]]; then
23
- echo " Skipping $sketchname test for $target , platform: $platform "
23
+ echo " \033[93mSkipping $sketchname test for $target , platform: $platform \033[0m "
24
24
return 0
25
25
fi
26
26
@@ -52,7 +52,7 @@ function run_test() {
52
52
fi
53
53
fi
54
54
55
- echo " Running test: $sketchname -- Config: $fqbn "
55
+ echo " \033[95mRunning test: $sketchname -- Config: $fqbn \033[0m "
56
56
if [ $erase_flash -eq 1 ]; then
57
57
esptool.py -c $target erase_flash
58
58
fi
@@ -77,17 +77,16 @@ function run_test() {
77
77
elif [ $target == " esp32c3" ]; then
78
78
extra_args+=" --qemu-prog-path qemu-system-riscv32 --qemu-cli-args=\" -machine $target -icount 3 -nographic\" "
79
79
else
80
- echo " Unsupported QEMU target: $target "
80
+ echo " \033[91mUnsupported QEMU target: $target \033[0m "
81
81
exit 1
82
82
fi
83
83
else
84
84
extra_args=" --embedded-services esp,arduino"
85
85
fi
86
86
87
87
result=0
88
- echo " pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args "
88
+ echo " \033[95mpytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args \033[0m "
89
89
bash -c " set +e; pytest tests --build-dir $build_dir -k test_$sketchname --junit-xml=$report_file $extra_args ; exit \$ ?" || result=$?
90
- echo " Test $sketchname return code: $result "
91
90
if [ $result -ne 0 ]; then
92
91
error=$result
93
92
fi
235
234
|| [ " $sketchnum " -gt " $end_index " ]; then
236
235
continue
237
236
fi
238
- echo " "
239
- echo " Sketch Index $(( $sketchnum - 1 )) "
237
+ echo " \n\n\n\n "
238
+ echo " \033[95mSketch Index $(( $sketchnum - 1 )) \033[0m "
240
239
241
240
exit_code=0
242
241
run_test $target $sketch $options $erase || exit_code=$?
0 commit comments