Skip to content

Commit d3d0bf0

Browse files
committed
Auto merge of #57975 - alexcrichton:debug-exit-appveyor, r=pietroalbini
Attempt to debug 259 exit code on AppVeyor Let's try to dig in a bit more and see where this is coming from, it looks like AppVeyor is also unsure where this is coming from!
2 parents 40e6a0b + ce279a8 commit d3d0bf0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ci/run.sh

+7
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ fi
121121
travis_fold end log-system-info
122122

123123
if [ ! -z "$SCRIPT" ]; then
124+
# This `set +e` followed by capturing the return value is a temporary measure
125+
# to help debug "error with exit 259" on AppVeyor temporarily, otherwise all
126+
# that's needed here is the `sh`
127+
set +e
124128
sh -x -c "$SCRIPT"
129+
ret=$?
130+
echo "script exited with $ret"
131+
exit $ret
125132
else
126133
do_make() {
127134
travis_fold start "make-$1"

0 commit comments

Comments
 (0)