diff options
Diffstat (limited to 'dev/test-dependencies.sh')
-rwxr-xr-x | dev/test-dependencies.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dev/test-dependencies.sh b/dev/test-dependencies.sh index 984e29d1be..4e260e2abf 100755 --- a/dev/test-dependencies.sh +++ b/dev/test-dependencies.sh @@ -22,6 +22,10 @@ set -e FWDIR="$(cd "`dirname $0`"/..; pwd)" cd "$FWDIR" +# Explicitly set locale in order to make `sort` output consistent across machines. +# See https://stackoverflow.com/questions/28881 for more details. +export LC_ALL=C + # TODO: This would be much nicer to do in SBT, once SBT supports Maven-style resolution. # NOTE: These should match those in the release publishing script @@ -37,7 +41,7 @@ HADOOP_PROFILES=( # resolve Spark's internal submodule dependencies. # See http://stackoverflow.com/a/3545363 for an explanation of this one-liner: -OLD_VERSION=$(mvn help:evaluate -Dexpression=project.version|grep -Ev '(^\[|Download\w+:)') +OLD_VERSION=$($MVN help:evaluate -Dexpression=project.version|grep -Ev '(^\[|Download\w+:)') TEMP_VERSION="spark-$(date +%s | tail -c6)" function reset_version { @@ -100,3 +104,5 @@ for HADOOP_PROFILE in "${HADOOP_PROFILES[@]}"; do exit 1 fi done + +exit 0 |