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

Improve logic in rt.sh #681

Merged
Merged
Changes from 4 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
19 changes: 19 additions & 0 deletions reg_tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ rm -f reg_test_results.txt
rm -rf UFS_UTILS

git clone --recursive https://github.com/ufs-community/UFS_UTILS.git
rc=$?

# Check to see if the clone was successful. Previously, it has
# failed due to lack of disk space.

if [[ $rc == 0 ]] && [[ -d UFS_UTILS ]];then
echo "Clone Successful"
else
target=`hostname -s`
if [[ -d /lfs3 ]] ; then
target=Jet
elif [[ -d /lfs/h1 ]] ; then
target=WCOSS2
elif [[ -d /scratch1 ]] ; then
target=Hera
fi
echo "Clone Failed" | mail -s "UFS_UTILS Consistency Tests failed on ${target}" ${MAILTO}
fi

cd UFS_UTILS

source sorc/machine-setup.sh
Expand Down