Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_dev.sh: Enable tests to fail gracefully #159

Open
wants to merge 1 commit into
base: release-3.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions scripts/run_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,22 @@ if [[ -z "$(docker ps)" ]] ; then
fi

# Check if git-lfs is installed.
set +e
git lfs &>/dev/null
if [[ $? -ne 0 ]] ; then
ECODE=$?
set -e
if [[ $ECODE -ne 0 ]] ; then
print_error "git-lfs is not insalled. Please make sure git-lfs is installed before you clone the repo."
exit 1
fi

# Check if all LFS files are in place in the repository where this script is running from.
cd $ROOT
set +e
git rev-parse &>/dev/null
if [[ $? -eq 0 ]]; then
ECODE=$?
set -e
if [[ $ECODE -eq 0 ]]; then
LFS_FILES_STATUS=$(cd $ISAAC_ROS_DEV_DIR && git lfs ls-files | cut -d ' ' -f2)
for (( i=0; i<${#LFS_FILES_STATUS}; i++ )); do
f="${LFS_FILES_STATUS:$i:1}"
Expand Down