From da9ebc17bb687fcc2156b76652f45914389c8da5 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Fri, 16 Oct 2015 13:36:17 -0400 Subject: [PATCH] Run ./scripts/common_startup.sh inside docker when using `run_tests.sh --dockerize`. Requires a rebuild of galaxy/base-testing. Necessary for tests to run on #428 (and anything else once #428 is merged). --- run_tests.sh | 12 ++++++++++-- test/docker/base/run_test_wrapper.sh | 4 +++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 7eb8a44269a..3e7e22fac10 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -3,8 +3,6 @@ pwd_dir=$(pwd) cd `dirname $0` -./scripts/common_startup.sh - # A good place to look for nose info: http://somethingaboutorange.com/mrl/projects/nose/ rm -f run_functional_tests.log @@ -286,6 +284,12 @@ do watch=1 shift ;; + --skip-common-startup) + # Don't run ./scripts/common_startup.sh (presumably it has already + # been done, or you know what you're doing). + skip_common_startup=1 + shift + ;; --) shift break @@ -301,6 +305,10 @@ do esac done +if [ -z "$skip_common_startup" ]; then + ./scripts/common_startup.sh +fi + if [ -n "$migrated_test" ] ; then [ -n "$test_id" ] && class=":TestForTool_$test_id" || class="" extra_args="functional.test_toolbox$class -migrated" diff --git a/test/docker/base/run_test_wrapper.sh b/test/docker/base/run_test_wrapper.sh index a3a4a3b5ceb..191a3c0c325 100644 --- a/test/docker/base/run_test_wrapper.sh +++ b/test/docker/base/run_test_wrapper.sh @@ -24,11 +24,13 @@ cd /galaxy GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION="$GALAXY_TEST_DBURI"; export GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION +[ ! -d .venv ] && ./scripts/common_startup.sh + sh manage_db.sh upgrade if [ -z "$GALAXY_NO_TESTS" ]; then - sh run_tests.sh $@ + sh run_tests.sh --skip-common-startup $@ else GALAXY_CONFIG_MASTER_API_KEY=${GALAXY_CONFIG_MASTER_API_KEY:-"testmasterapikey"} GALAXY_CONFIG_FILE=${GALAXY_CONFIG_FILE:-config/galaxy.ini.sample}