about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-09-20 21:36:35 +0800
committerkennytm <kennytm@gmail.com>2018-09-20 23:28:05 +0800
commite76ca54ea4999dd0367cc8d3311b2601af9e279b (patch)
tree15805c9e2d92134cb26bbbe2c67f1435528220d1
parentf2aabb713820c3f4077fec4d0488d48ba493f965 (diff)
parente2ff97a14d832b6814292d54fcea155f5d1905bc (diff)
downloadrust-e76ca54ea4999dd0367cc8d3311b2601af9e279b.tar.gz
rust-e76ca54ea4999dd0367cc8d3311b2601af9e279b.zip
Rollup merge of #54362 - tromey:travis-gdb-batch-mode, r=nikomatsakis
Pass --batch to gdb

In one of my travis builds, I was surprised to find that the gdb
pager was in use and caused travis to time out.  Adding `--batch`
to the gdb invocation will disable the pager.  Note that the
`-ex q` is retained, to make sure gdb exits with status 0, just in
case `set -e` is in effect somehow.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index b1701e4a654..0646f4d4687 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -301,7 +301,7 @@ after_failure:
       EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|');
       if [ -f "$EXE" ]; then
         printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE";
-        gdb -q -c "$CORE" "$EXE"
+        gdb --batch -q -c "$CORE" "$EXE"
           -iex 'set auto-load off'
           -iex 'dir src/'
           -iex 'set sysroot .'