From: David Zafman Date: Fri, 8 Jun 2018 22:31:35 +0000 (-0700) Subject: test: run-standalone move aside cores found before testing starts X-Git-Tag: v14.0.1~1091^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22480%2Fhead;p=ceph.git test: run-standalone move aside cores found before testing starts Signed-off-by: David Zafman --- diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index e46a5c10d35f..1cc4b56a6e82 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -94,6 +94,15 @@ if [ "$precore" = "$COREPATTERN" ]; then else sudo sysctl -w ${KERNCORE}=${COREPATTERN} fi +# Clean out any cores in core target directory (currently .) +if ls $(dirname $(sysctl -n $KERNCORE)) | grep -q '^core\|core$' ; then + mkdir found.cores.$$ 2> /dev/null || true + for i in $(ls $(dirname $(sysctl -n $KERNCORE)) | grep '^core\|core$'); do + mv $i found.cores.$$ + done + echo "Stray cores put in $(pwd)/found.cores.$$" +fi + ulimit -c unlimited for f in $(cd $location ; find . -perm $exec_mode -type f) do