Skip to content

Commit

Permalink
[hotfix] Make test_sql_client independent of unzip
Browse files Browse the repository at this point in the history
Some platforms might not have installed the unzip command. Therefore it is
better to use the jar command to extract jar files.
  • Loading branch information
tillrohrmann committed Nov 11, 2018
1 parent 3d0dfc5 commit 76653c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flink-end-to-end-tests/test-scripts/test_sql_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mkdir -p $EXTRACTED_JAR

for SQL_JAR in $SQL_JARS_DIR/*.jar; do
echo "Checking SQL JAR: $SQL_JAR"
unzip $SQL_JAR -d $EXTRACTED_JAR > /dev/null
(cd $EXTRACTED_JAR && jar xf $SQL_JAR)

# check for proper shading
for EXTRACTED_FILE in $(find $EXTRACTED_JAR -type f); do
Expand All @@ -60,6 +60,8 @@ for SQL_JAR in $SQL_JARS_DIR/*.jar; do
rm -r $EXTRACTED_JAR/*
done

rm -r $EXTRACTED_JAR

################################################################################
# Prepare connectors
################################################################################
Expand Down

0 comments on commit 76653c0

Please sign in to comment.