Skip to content

Commit

Permalink
[FLINK-17403][test] Fix invalid classpath in BashJavaUtilsITCase
Browse files Browse the repository at this point in the history
This closes apache#11934.
  • Loading branch information
link3280 authored and azagrebin committed May 6, 2020
1 parent c2540e4 commit 40b742f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flink-dist/src/test/bin/runBashJavaUtilsCmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ bin=`cd "$bin"; pwd`

FLINK_CONF_DIR=${bin}/../../main/resources
FLINK_TARGET_DIR=${bin}/../../../target
FLINK_DIST_JAR=`find $FLINK_TARGET_DIR -name 'flink-dist*.jar'`
FLINK_DIST_JARS=(`find ${FLINK_TARGET_DIR} -maxdepth 1 -name 'flink-dist*.jar'`)
FLINK_DIST_CLASSPATH=`echo ${FLINK_DIST_JARS[@]} | tr ' ' ':'`

. ${bin}/../../main/flink-bin/bin/config.sh > /dev/null

output=$(runBashJavaUtilsCmd ${COMMAND} ${FLINK_CONF_DIR} "$FLINK_TARGET_DIR/bash-java-utils.jar:$FLINK_DIST_JAR}" $DYNAMIC_OPTS)
output=$(runBashJavaUtilsCmd ${COMMAND} ${FLINK_CONF_DIR} "$FLINK_TARGET_DIR/bash-java-utils.jar:${FLINK_DIST_CLASSPATH}" $DYNAMIC_OPTS)
extractExecutionResults "${output}" ${EXPECTED_LINES}

0 comments on commit 40b742f

Please sign in to comment.