Skip to content

Commit 65c381d

Browse files
committed
typo, fix err trap for "test ...something..."
1 parent dbd38ff commit 65c381d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

tests/common.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -u -e -E -o pipefail
3+
set -u -e -E -o pipefail -o errtrace
44

55
cache_dir=$(mktemp -d)
66
trap '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

tests/install_arduino.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22

3-
set -x
4-
53
root=$(git rev-parse --show-toplevel)
64
source "$root/tests/env.sh"
75

tests/test_mkbuildoptglobals.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
trap 'echo " ${BASH_SOURCE[1]}:$LINENO $BASH_COMMAND"' ERR
4+
35
root=$(git rev-parse --show-toplevel)
46
source "$root/tests/env.sh"
57

tests/test_mkbuildoptglobals/nobuildopt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)