about summary refs log tree commit diff
path: root/src/ci
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-30 03:44:11 +0000
committerbors <bors@rust-lang.org>2019-01-30 03:44:11 +0000
commitd3d0bf0e9f4d748b95ed143cc636d159bfcb4a6f (patch)
tree9252e6a17797fe557d16383d5d61f5026d38ceed /src/ci
parent40e6a0bd766ca7b1c582b964131400b8c3e89d76 (diff)
parentce279a8e53a315622d5b6b4f3332692b903c6655 (diff)
downloadrust-d3d0bf0e9f4d748b95ed143cc636d159bfcb4a6f.tar.gz
rust-d3d0bf0e9f4d748b95ed143cc636d159bfcb4a6f.zip
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!
Diffstat (limited to 'src/ci')
-rwxr-xr-xsrc/ci/run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index 42d0d7db596..0f2517c7d1f 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -121,7 +121,14 @@ fi
 travis_fold end log-system-info
 
 if [ ! -z "$SCRIPT" ]; then
+  # This `set +e` followed by capturing the return value is a temporary measure
+  # to help debug "error with exit 259" on AppVeyor temporarily, otherwise all
+  # that's needed here is the `sh`
+  set +e
   sh -x -c "$SCRIPT"
+  ret=$?
+  echo "script exited with $ret"
+  exit $ret
 else
   do_make() {
     travis_fold start "make-$1"