From 3d2493a3fd724edc382922e91147f893dcb0f904 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 8 Oct 2018 05:38:45 +0200 Subject: CI/travis/macOS: use "sudo rm" to remove cores After bumping Travis macOS to 10.13, it now hangs at: + check_core_dumps --delete quiet + local del= + test --delete = --delete + del=1 + shift + local app=quiet + test osx = osx ++ find /cores/ -type f -print + local 'cores=/cores//core.554 /cores//core.641 /cores//core.801' + test -z '/cores//core.554 /cores//core.641 /cores//core.801' + local core + for core in '$cores' + test 1 = 1 + print_core quiet /cores//core.554 + local app=quiet + local core=/cores//core.554 + test quiet = quiet + echo 'Found core /cores//core.554' Found core /cores//core.554 + return 0 + rm /cores//core.554 override r-------- root/admin for /cores//core.554? The cores are always present on the Travis macOS 10.13 image! Hilarious. --- ci/common/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ci') 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 -- cgit