Skip to content

Commit 3b93e2e

Browse files
committed
Fix incomplete test to handle missing md5
1 parent 57fb182 commit 3b93e2e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/e2e/resources/sparkinputs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ if ! [ -f "spark-$version-bin-hadoop2.7.tgz" ]; then
1616
fi
1717
if ! [ -f "spark-$version-bin-hadoop2.7.tgz.md5" ]; then
1818
wget https://archive.apache.org/dist/spark/spark-$version/spark-$version-bin-hadoop2.7.tgz.md5
19+
if [ "$?" -ne 0 ]; then
20+
echo "Failed to download md5, calculating from tarball for the test"
21+
md5sum spark-$version-bin-hadoop2.7.tgz > spark-$version-bin-hadoop2.7.tgz.md5
22+
fi
1923
fi
2024
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
2125
popd

0 commit comments

Comments
 (0)