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

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


The following commit(s) were added to refs/heads/release-1.18 by this push:
     new 6e96772f8d5 [FLINK-34150][ci] Enables local file sink e2e tests in 
general CI setups
6e96772f8d5 is described below

commit 6e96772f8d50d21b64ff2b5b601253b4c307a624
Author: Matthias Pohl <matthias.p...@aiven.io>
AuthorDate: Thu Jan 18 13:43:45 2024 +0100

    [FLINK-34150][ci] Enables local file sink e2e tests in general CI setups
---
 flink-end-to-end-tests/test-scripts/test_file_sink.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/flink-end-to-end-tests/test-scripts/test_file_sink.sh 
b/flink-end-to-end-tests/test-scripts/test_file_sink.sh
index 5965c071d89..711f74b6672 100755
--- a/flink-end-to-end-tests/test-scripts/test_file_sink.sh
+++ b/flink-end-to-end-tests/test-scripts/test_file_sink.sh
@@ -24,7 +24,12 @@ S3_PREFIX=temp/test_file_sink-$(uuidgen)
 OUTPUT_PATH="$TEST_DATA_DIR/$S3_PREFIX"
 S3_OUTPUT_PATH="s3://$IT_CASE_S3_BUCKET/$S3_PREFIX"
 source "$(dirname "$0")"/common.sh
-source "$(dirname "$0")"/common_s3.sh
+
+if [ "${OUT_TYPE}" == "s3" ]; then
+  source "$(dirname "$0")"/common_s3.sh
+else
+  echo "S3 environment is not loaded for non-s3 test runs (test run type: 
$OUT_TYPE)."
+fi
 
 # randomly set up openSSL with dynamically/statically linked libraries
 OPENSSL_LINKAGE=$(if (( RANDOM % 2 )) ; then echo "dynamic"; else echo 
"static"; fi)

Reply via email to