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

Search for mongo-tools not only in workdir, but also in $PATH (take 2) #4

Open
wants to merge 1 commit into
base: master
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
15 changes: 11 additions & 4 deletions run_smoke_resmoke_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ run_system_validations() {

# check for needed mongo binaries

for binary in bsondump mongo mongod mongodump mongoexport mongofiles mongoimport mongooplog mongorestore mongos mongostat; do
for binary in mongo mongod mongos; do
if [ ! -x "./${binary}" ]; then
echo "Could not find ./${binary}; make sure you are running this from the root build directory,"
echo "that the MongoDB binaries have been built and the mongo-tools binaries have been copied"
echo "to the build root."
echo "Could not find '${binary}'; make sure you are running this from the root build directory,"
echo "and that the MongoDB binaries have been built."
exit 1;
fi
done

for binary in bsondump mongodump mongoexport mongofiles mongoimport mongooplog mongorestore mongostat; do
if [ ! -x "./${binary}" ] && ! type -p ${binary} &> /dev/null ; then
echo "Could not find '${binary}'; make sure the mongo-tools binaries have been built"
echo "and can be found either in the working directory or in the \$PATH."
exit 1;
fi
done
Expand Down