File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- set -u -e -E -o pipefail
3+ set -u -e -E -o pipefail -o errtrace
44
55cache_dir=$( mktemp -d)
66trap ' trap_exit' EXIT
@@ -9,10 +9,16 @@ function trap_exit()
99{
1010 # workaround for macOS shipping with broken bash
1111 local exit_code=$?
12+
13+ # ^ $cache_dir is temporary, prune when exiting
1214 if [ -z " ${ESP8266_ARDUINO_PRESERVE_CACHE-} " ]; then
1315 rm -rf " $cache_dir "
1416 fi
1517
18+ if [ " $exit_code " != 0 ] ; then
19+ echo " *** exit_code=$exit_code ***"
20+ fi
21+
1622 exit $exit_code
1723}
1824
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- set -x
4-
53root=$( git rev-parse --show-toplevel)
64source " $root /tests/env.sh"
75
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ trap ' echo " ${BASH_SOURCE[1]}:$LINENO $BASH_COMMAND"' ERR
4+
35root=$( git rev-parse --show-toplevel)
46source " $root /tests/env.sh"
57
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ function nobuildopt()
33 build_esp8266_example " Blink"
44
55 local last_sketch=$( most_recent_dir " $sketches " )
6- assert_build " Blink.ino " " $last_sketch " 0
6+ assert_build " Blink" " $last_sketch " 0
77 assert_core 0
88
99 local blink_commonh_stat=$( make_commonh_stat)
You can’t perform that action at this time.
0 commit comments