aboutsummaryrefslogtreecommitdiff
path: root/ci/common
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-13 15:59:49 -0700
committerGitHub <noreply@github.com>2018-10-13 15:59:49 -0700
commitc9baaa9200e95d559b91e21e0b3da087de2de629 (patch)
tree37c3ed0c97fe3f4789430af19d6bc9511f85ab89 /ci/common
parentaa87dd2b8943d7c52e9af657c76e60434fb35c95 (diff)
parent78418e17e90fb06a4a0a09bbef88d36428d1f938 (diff)
downloadrneovim-c9baaa9200e95d559b91e21e0b3da087de2de629.tar.gz
rneovim-c9baaa9200e95d559b91e21e0b3da087de2de629.tar.bz2
rneovim-c9baaa9200e95d559b91e21e0b3da087de2de629.zip
Merge #9095 'CI/travis/macOS: fix missing pip3'
Diffstat (limited to 'ci/common')
-rw-r--r--ci/common/test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/common/test.sh b/ci/common/test.sh
index bc80dfead7..a6afd1df4c 100644
--- a/ci/common/test.sh
+++ b/ci/common/test.sh
@@ -34,8 +34,10 @@ check_core_dumps() {
local app="${1:-${BUILD_DIR}/bin/nvim}"
if test "${TRAVIS_OS_NAME}" = osx ; then
local cores="$(find /cores/ -type f -print)"
+ local _sudo='sudo'
else
local cores="$(find ./ -type f -name 'core.*' -print)"
+ local _sudo=
fi
if test -z "${cores}" ; then
@@ -45,7 +47,7 @@ check_core_dumps() {
for core in $cores; do
if test "$del" = "1" ; then
print_core "$app" "$core" >&2
- rm "$core"
+ "$_sudo" rm "$core"
else
print_core "$app" "$core"
fi