[ARVADOS] updated: 1.3.0-1312-gf4b7169e3

Git user git at public.curoverse.com
Mon Jul 15 18:43:03 UTC 2019


Summary of changes:
 build/run-tests.sh | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

       via  f4b7169e3d386d64be1adc3c698f170e8f19060c (commit)
      from  f9953acbb4ca9c82296a9053da29a6d6842450b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f4b7169e3d386d64be1adc3c698f170e8f19060c
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Mon Jul 15 14:42:34 2019 -0400

    Don't set ARVADOS_CONFIG if it isn't there.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>

diff --git a/build/run-tests.sh b/build/run-tests.sh
index 4027f9748..14f889ad6 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -255,12 +255,6 @@ sanity_checks() {
     echo -n 'libpq libpq-fe.h: '
     find /usr/include -path '*/postgresql/libpq-fe.h' | egrep --max-count=1 . \
         || fatal "No libpq libpq-fe.h. Try: apt-get install libpq-dev"
-    #echo -n 'services/api/config/database.yml: '
-    #if [[ ! -f "$WORKSPACE/services/api/config/database.yml" ]]; then
-	#    fatal "Please provide a database.yml file for the test suite"
-    #else
-	#    echo "OK"
-    #fi
     echo -n 'postgresql: '
     psql --version || fatal "No postgresql. Try: apt-get install postgresql postgresql-client-common"
     echo -n 'phantomjs: '
@@ -632,6 +626,7 @@ initialize() {
 
     if [[ -s "$CONFIGSRC/config.yml" ]] ; then
 	cp "$CONFIGSRC/config.yml" "$temp/test-config.yml"
+	export ARVADOS_CONFIG="$temp/test-config.yml"
     else
 	if [[ -s /etc/arvados/config.yml ]] ; then
 	    python > "$temp/test-config.yml" <<EOF
@@ -641,10 +636,13 @@ v = list(yaml.safe_load(open('/etc/arvados/config.yml'))['Clusters'].values())[0
 v['Connection']['dbname'] = 'arvados_test'
 print(json.dumps({"Clusters": { "zzzzz": {'PostgreSQL': v}}}))
 EOF
-	    test_database=$(cat $temp/db.yml)
+	    export ARVADOS_CONFIG="$temp/test-config.yml"
+	else
+	    if [[ ! -f "$WORKSPACE/services/api/config/database.yml" ]]; then
+		fatal "Please provide a database.yml file for the test suite"
+	    fi
 	fi
     fi
-    export ARVADOS_CONFIG="$temp/test-config.yml"
 
     echo "PATH is $PATH"
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list