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:
Martin Cech
2015-10-17 11:38:45 -04:00
2 changed files with 13 additions and 3 deletions
+10 -2
View File
@@ -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"
+3 -1
View File
@@ -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}