You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by al...@apache.org on 2019/03/13 19:09:26 UTC

[beam] branch master updated: Make python run_integration_test.sh handle multiple tarballs

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

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f3e2b6  Make python run_integration_test.sh handle multiple tarballs
     new 5c5283c  Merge pull request #8008 from udim/run-it
5f3e2b6 is described below

commit 5f3e2b6fea4ea45138e4017a0cdd6d4f72b70822
Author: Udi Meiri <eh...@google.com>
AuthorDate: Wed Mar 6 17:34:37 2019 -0800

    Make python run_integration_test.sh handle multiple tarballs
    
    Will take the last one in alphanumerical order, instead of passing all
    on the command line and effectively using the first and oldest.
---
 sdks/python/scripts/run_integration_test.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sdks/python/scripts/run_integration_test.sh b/sdks/python/scripts/run_integration_test.sh
index 5fa066c..273f963 100755
--- a/sdks/python/scripts/run_integration_test.sh
+++ b/sdks/python/scripts/run_integration_test.sh
@@ -149,7 +149,6 @@ esac
 done
 
 set -o errexit
-set -o verbose
 
 
 ###########################################################################
@@ -169,11 +168,11 @@ if [[ -z $PIPELINE_OPTS ]]; then
   fi
 
   # Create a tarball if not exists
-  if [[ $(find ${SDK_LOCATION}) ]]; then
+  if [[ $(find ${SDK_LOCATION} 2> /dev/null) ]]; then
     SDK_LOCATION=$(find ${SDK_LOCATION})
   else
     python setup.py -q sdist
-    SDK_LOCATION=$(find dist/apache-beam-*.tar.gz)
+    SDK_LOCATION=$(ls dist/apache-beam-*.tar.gz | tail -n1)
   fi
 
   # Install test dependencies for ValidatesRunner tests.