Commit 28b7c71a authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

test_downstream: make a way to only run prep

parent 79644714
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -824,6 +824,13 @@ function prepare_downstream_build()

function test_downstream()
{
  local prep_only=0

  if [[ "$1" == "--prep-only" ]]; then
    prep_only=1
    shift
  fi

  local downstream_url="$1"
  local proj_url=""
  local test_examples=0
@@ -853,6 +860,7 @@ function test_downstream()

  pip_install_project

  if [[ "$prep_only" == "0" ]]; then
    if [[ "$test_examples" == "0" ]]; then
      test_py_project
    else
@@ -862,6 +870,7 @@ function test_downstream()
        run_examples
      fi
    fi
  fi
}

# }}}