Skip to content

Commit

Permalink
Fix incomplete test to handle missing md5
Browse files Browse the repository at this point in the history
  • Loading branch information
tmckayus committed May 24, 2019
1 parent 57fb182 commit 3b93e2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/resources/sparkinputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if ! [ -f "spark-$version-bin-hadoop2.7.tgz" ]; then
fi
if ! [ -f "spark-$version-bin-hadoop2.7.tgz.md5" ]; then
wget https://archive.apache.org/dist/spark/spark-$version/spark-$version-bin-hadoop2.7.tgz.md5
if [ "$?" -ne 0 ]; then
echo "Failed to download md5, calculating from tarball for the test"
md5sum spark-$version-bin-hadoop2.7.tgz > spark-$version-bin-hadoop2.7.tgz.md5
fi
fi
echo "spark-$version-bin-hadoop2.7.tgz: FF FF FF FF FF FF CA FE BE EF CA FE BE EF CA FE" > spark-$version-bin-hadoop2.7.tgz.bad
popd
Expand Down

0 comments on commit 3b93e2e

Please sign in to comment.