about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2017-04-08 08:39:31 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2017-04-14 15:30:01 +0100
commitbb843582cac721b1a478c6dc12dafee1edbd73e4 (patch)
treecb400e4205148e6431ec7495b22c4d5293ce4e17
parent547c12b8a61d7d0c047649c236f84b59ca2d2cc9 (diff)
downloadrust-bb843582cac721b1a478c6dc12dafee1edbd73e4.tar.gz
rust-bb843582cac721b1a478c6dc12dafee1edbd73e4.zip
Add a comment for disabling errexit
-rw-r--r--appveyor.yml3
-rwxr-xr-xsrc/ci/init_repo.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 9070c5d9edf..978ca0d9739 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -148,8 +148,7 @@ test_script:
   - sh src/ci/run.sh
 
 on_failure:
-  - cat %CD%\sccache.log
-  - cat C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log
+  - cat %CD%\sccache.log || exit 0
 
 cache:
   - C:\cache\rustsrc
diff --git a/src/ci/init_repo.sh b/src/ci/init_repo.sh
index 633b88dd2c4..1db2135eb6d 100755
--- a/src/ci/init_repo.sh
+++ b/src/ci/init_repo.sh
@@ -41,6 +41,8 @@ if [ ! -f "$cache_valid_file" ]; then
     rm -rf "$CACHE_DIR"
     mkdir "$CACHE_DIR"
 else
+    # Ignore errors while gathering information about the possible brokenness
+    # of the git repo since our gathered info will tell us something is wrong
     set +o errexit
     stat_lines=$(cd "$cache_src_dir" && git status --porcelain | wc -l)
     stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1; echo $?)