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 1
1
#! /usr/bin/env bash
2
2
3
- set -u -e -E -o pipefail
3
+ set -u -e -E -o pipefail -o errtrace
4
4
5
5
cache_dir=$( mktemp -d)
6
6
trap ' trap_exit' EXIT
@@ -9,10 +9,16 @@ function trap_exit()
9
9
{
10
10
# workaround for macOS shipping with broken bash
11
11
local exit_code=$?
12
+
13
+ # ^ $cache_dir is temporary, prune when exiting
12
14
if [ -z " ${ESP8266_ARDUINO_PRESERVE_CACHE-} " ]; then
13
15
rm -rf " $cache_dir "
14
16
fi
15
17
18
+ if [ " $exit_code " != 0 ] ; then
19
+ echo " *** exit_code=$exit_code ***"
20
+ fi
21
+
16
22
exit $exit_code
17
23
}
18
24
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -x
4
-
5
3
root=$( git rev-parse --show-toplevel)
6
4
source " $root /tests/env.sh"
7
5
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ trap ' echo " ${BASH_SOURCE[1]}:$LINENO $BASH_COMMAND"' ERR
4
+
3
5
root=$( git rev-parse --show-toplevel)
4
6
source " $root /tests/env.sh"
5
7
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ function nobuildopt()
3
3
build_esp8266_example " Blink"
4
4
5
5
local last_sketch=$( most_recent_dir " $sketches " )
6
- assert_build " Blink.ino " " $last_sketch " 0
6
+ assert_build " Blink" " $last_sketch " 0
7
7
assert_core 0
8
8
9
9
local blink_commonh_stat=$( make_commonh_stat)
You can’t perform that action at this time.
0 commit comments