Skip to content

Commit f2b2968

Browse files
committed
Auto merge of #58162 - pietroalbini:track-259, r=alexcrichton
Add more debugging code to track down appveyor 259 exit code cc #58160 r? @alexcrichton
2 parents b2c6b8c + 2bfb4b3 commit f2b2968

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ test_script:
207207
- sh src/ci/init_repo.sh . /c/cache/rustsrc
208208
- set SRC=.
209209
- set NO_CCACHE=1
210-
- sh src/ci/run.sh
210+
# Added this debugging code to try tracking down https://github.com/rust-lang/rust/issues/58160
211+
# Replace it with the commented line below after the issue with AppVeyor is fixed
212+
- "sh src/ci/run.sh & set ret=%errorlevel% & echo exit code in appveyor.yml: %ret% & exit %ret%"
213+
# - sh src/ci/run.sh
211214

212215
on_failure:
213216
# Dump crash log

src/ci/run.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ if [ ! -z "$SCRIPT" ]; then
127127
set +e
128128
sh -x -c "$SCRIPT"
129129
ret=$?
130-
echo "script exited with $ret"
130+
echo "exit code in src/ci/run.sh: $ret"
131+
132+
echo "tasklist:"
133+
tasklist
134+
echo -n "location of sh: "
135+
where sh
136+
131137
exit $ret
132138
else
133139
do_make() {

0 commit comments

Comments
 (0)