You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/08/01 12:03:52 UTC

[flink] branch release-1.5 updated: [FLINK-9946][tests] Expose Flink version to E2E tests

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch release-1.5
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.5 by this push:
     new 96dfc6f  [FLINK-9946][tests] Expose Flink version to E2E tests
96dfc6f is described below

commit 96dfc6fd647ff5d9b97932624c17ea1f5a3fd743
Author: Chesnay <ch...@apache.org>
AuthorDate: Wed Aug 1 13:57:14 2018 +0200

    [FLINK-9946][tests] Expose Flink version to E2E tests
---
 flink-end-to-end-tests/test-scripts/common.sh           | 2 ++
 flink-end-to-end-tests/test-scripts/test_quickstarts.sh | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/flink-end-to-end-tests/test-scripts/common.sh b/flink-end-to-end-tests/test-scripts/common.sh
index adc1360..c04a6ef 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -28,6 +28,8 @@ export EXIT_CODE=0
 
 echo "Flink dist directory: $FLINK_DIR"
 
+FLINK_VERSION=$(cat ${END_TO_END_DIR}/pom.xml | sed -n 's/.*<version>\(.*\)<\/version>/\1/p')
+
 USE_SSL=OFF # set via set_conf_ssl(), reset via revert_default_config()
 TEST_ROOT=`pwd`
 TEST_INFRA_DIR="$END_TO_END_DIR/test-scripts/"
diff --git a/flink-end-to-end-tests/test-scripts/test_quickstarts.sh b/flink-end-to-end-tests/test-scripts/test_quickstarts.sh
index c496146..cfddcff 100755
--- a/flink-end-to-end-tests/test-scripts/test_quickstarts.sh
+++ b/flink-end-to-end-tests/test-scripts/test_quickstarts.sh
@@ -29,7 +29,7 @@ cd $TEST_DATA_DIR
 mvn archetype:generate                             \
     -DarchetypeGroupId=org.apache.flink            \
     -DarchetypeArtifactId=flink-quickstart-java    \
-    -DarchetypeVersion=1.6-SNAPSHOT                \
+    -DarchetypeVersion=${FLINK_VERSION}            \
     -DgroupId=org.apache.flink.quickstart          \
     -DartifactId=flink-java-project                \
     -Dversion=0.1                                  \