Skip to content

Commit 601fa4d

Browse files
committed
[sanitizer] Don't delete git checkout on clobber
1 parent ad93356 commit 601fa4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

zorg/buildbot/builders/sanitizers/buildbot_functions.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ function clobber {
101101
if [[ "$BUILDBOT_CLOBBER" != "" ]]; then
102102
echo @@@BUILD_STEP clobber@@@
103103
if [[ ! -v BUILDBOT_BUILDERNAME ]]; then
104-
echo "Clobbering is supported only on buildbot only!"
104+
echo "Clobbering is supported on buildbot only!"
105105
exit 1
106106
fi
107-
rm_dirs ./*
107+
find -maxdepth 1 -mindepth 1 -path ./llvm-project -prune -o -print -exec rm -rf {} \;
108+
du -hs ./* | sort -h
109+
return 0
108110
else
109111
BUILDBOT_BUILDERNAME=1 cleanup "$@"
110112
fi

0 commit comments

Comments
 (0)