Skip to content

Commit

Permalink
Fix a few shellcheck warnings in sanitizer buildbot script
Browse files Browse the repository at this point in the history
Reviewed By: asb

Pull Request: #298
  • Loading branch information
arichardson authored Nov 8, 2024
1 parent 8a25920 commit 0397cb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function cmake() {
}

function rm_dirs {
while ! rm -rf $@ ; do sleep 1; done
while ! rm -rf "$@" ; do sleep 1; done
}

function cleanup() {
Expand All @@ -94,7 +94,7 @@ function cleanup() {
fi
# Workaround the case when a new unittest was reverted, but incremental build continues to execute the leftover binary.
find -path ./llvm-project -prune -o -executable -type f -path '*unittests*' -print -exec rm -f {} \;
du -hs * | sort -h
du -hs ./* | sort -h
}

function clobber {
Expand All @@ -104,9 +104,9 @@ function clobber {
echo "Clobbering is supported only on buildbot only!"
exit 1
fi
rm_dirs *
rm_dirs ./*
else
BUILDBOT_BUILDERNAME=1 cleanup $@
BUILDBOT_BUILDERNAME=1 cleanup "$@"
fi
}

Expand Down Expand Up @@ -204,7 +204,7 @@ function build_clang_at_release_tag {
then
echo "@@@BUILD_STEP using pre-built stage1 clang at r${host_clang_revision}@@@"
else
BUILDBOT_MONO_REPO_PATH= BUILDBOT_REVISION="${host_clang_revision}" buildbot_update
BUILDBOT_MONO_REPO_PATH="" BUILDBOT_REVISION="${host_clang_revision}" buildbot_update

rm -rf ${STAGE1_DIR}
echo @@@BUILD_STEP build stage1 clang at $host_clang_revision@@@
Expand Down

0 comments on commit 0397cb6

Please sign in to comment.