[ARVADOS] updated: 1.2.0-52-g9af9cecdc

Git user git at public.curoverse.com
Thu Aug 23 17:30:38 EDT 2018


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

       via  9af9cecdc25dc15243e6ca54895620ab472780df (commit)
      from  c11f9cac7535f27aff9575002bc31ba0149ac111 (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 9af9cecdc25dc15243e6ca54895620ab472780df
Author: Ward Vandewege <wvandewege at veritasgenetics.com>
Date:   Thu Aug 23 17:27:18 2018 -0400

    Bugfix for run-tests.sh: run sdk/R install if docs are being built,
    they rely on it.
    
    Improvement for run-tests.sh: support multiple occurrences of the
    --only argument.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>

diff --git a/build/run-tests.sh b/build/run-tests.sh
index 7ca36f0f0..90e804a10 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -270,6 +270,7 @@ rotate_logfile() {
 
 declare -a failures
 declare -A skip
+declare -A only
 declare -A testargs
 skip[apps/workbench_profile]=1
 # nodemanager_integration tests are not reliable, see #12061.
@@ -288,7 +289,7 @@ do
             skip[$1]=1; shift
             ;;
         --only)
-            only="$1"; skip[$1]=""; shift
+            only[$1]=1; skip[$1]=""; shift
             ;;
         --short)
             short=1
@@ -331,14 +332,19 @@ done
 # required when testing it. Skip that step if it is not needed.
 NEED_SDK_R=true
 
-if [[ ! -z "${only}" && "${only}" != "sdk/R" ]]; then
+if [[ ${#only[@]} -ne 0 ]] &&
+   [[ -z "${only['sdk/R']}" && -z "${only['doc']}" ]]; then
   NEED_SDK_R=false
 fi
 
-if [[ ${skip["sdk/R"]} = 1 ]]; then
+if [[ ${skip["sdk/R"]} == 1 && ${skip["doc"]} == 1 ]]; then
   NEED_SDK_R=false
 fi
 
+if [[ $NEED_SDK_R == false ]]; then
+	echo "R SDK not needed, it will not be installed."
+fi
+
 start_services() {
     echo 'Starting API, keepproxy, keep-web, ws, arv-git-httpd, and nginx ssl proxy...'
     if [[ ! -d "$WORKSPACE/services/api/log" ]]; then
@@ -658,9 +664,9 @@ do_test() {
             ;;
     esac
     if [[ -z "${skip[$suite]}" && -z "${skip[$1]}" && \
-              (-z "${only}" || "${only}" == "${suite}" || \
-                   "${only}" == "${1}") ||
-                  "${only}" == "${2}" ]]; then
+              (${#only[@]} -eq 0 || ${only[$suite]} = 1 || \
+                   ${only[$1]} = 1) ||
+                  ${only[$2]} = 1 ]]; then
         retry do_test_once ${@}
     else
         title "Skipping ${1} tests"

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list