mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #936 from natefoo/dockerize-tests-setup
common_startup.sh fixes for run_tests.sh --dockerize and wheels
This commit is contained in:
+10
-2
@@ -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
|
||||
|
||||
@@ -288,6 +286,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
|
||||
@@ -303,6 +307,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"
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user