diff --git a/run_tests.sh b/run_tests.sh index 926f2bffd22..ab5184ba069 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -4,9 +4,6 @@ cd "$(dirname "$0")" show_help() { cat <&2 - exit 1 - fi - ;; -a|-api|--api) GALAXY_TEST_USE_HIERARCHICAL_OBJECT_STORE="True" # Run these tests with a non-trivial object store. export GALAXY_TEST_USE_HIERARCHICAL_OBJECT_STORE @@ -409,32 +391,18 @@ do framework_test=1; shift 1 ;; - -main|-main_tools|--main_tools) - GALAXY_TEST_TOOL_CONF="lib/galaxy/config/sample/tool_conf.xml.sample" - marker="tool" - report_file="run_framework_tests.html" - framework_test=1; - shift 1 - ;; -d|-data_managers|--data_managers) marker="data_manager" report_file="run_data_managers_tests.html" data_managers_test=1; shift 1 ;; - -m|-migrated|--migrated) - GALAXY_TEST_TOOL_CONF="config/migrated_tools_conf.xml" + -main|-main_tools|--main_tools) + GALAXY_TEST_TOOL_CONF="lib/galaxy/config/sample/tool_conf.xml.sample" marker="tool" - report_file="run_migrated_tests.html" - migrated_test=1; - shift - ;; - -installed|--installed) - GALAXY_TEST_TOOL_CONF="config/shed_tool_conf.xml" - marker="tool" - report_file="run_installed_tests.html" - installed_test=1; - shift + report_file="run_framework_tests.html" + framework_test=1; + shift 1 ;; -r|--report_file) if [ $# -gt 1 ]; then @@ -555,7 +523,6 @@ do --) # Do not default to running the functional tests in this case, caller # is opting to run specific tests so don't interfere with that by default. - unset run_default_functional_tests; shift break ;; @@ -589,7 +556,7 @@ fi setup_python -if [ -n "$framework_test" ] || [ -n "$installed_test" ] || [ -n "$migrated_test" ] || [ -n "$data_managers_test" ] ; then +if [ -n "$framework_test" ] || [ -n "$data_managers_test" ] ; then if [ -n "$test_id" ]; then selector="-k $test_id" else @@ -602,16 +569,12 @@ elif [ -n "$toolshed_script" ]; then extra_args="$toolshed_script" elif [ -n "$api_script" ]; then extra_args="$api_script" -elif [ -n "$section_id" ]; then - extra_args=$(python tool_list.py "$section_id") elif [ -n "$unit_extra" ]; then extra_args="$unit_extra" elif [ -n "$integration_extra" ]; then extra_args="$integration_extra" elif [ -n "$test_target" ] ; then extra_args="$test_target" -elif [ -n "$run_default_functional_tests" ] ; then - extra_args='--exclude="^get" functional' else extra_args="" fi diff --git a/tool_list.py b/tool_list.py deleted file mode 100644 index d335805d1fc..00000000000 --- a/tool_list.py +++ /dev/null @@ -1,85 +0,0 @@ -import os -import sys - -# read tool_conf.xml to get all the tool xml file names -onoff = 1 -tool_list = [] -tool_conf_file = os.environ.get("GALAXY_TEST_TOOL_CONF", None) - -if tool_conf_file is None: - for possible_tool_file in ["config/tool_conf.xml", "tool_conf.xml", "config/tool_conf.xml.sample"]: - tool_conf_file = possible_tool_file - if os.path.isfile(possible_tool_file): - break - -if tool_conf_file is None or not os.path.isfile(tool_conf_file): - sys.stderr.write(f"Tool config file not found: {tool_conf_file}\n") - sys.exit(1) - -for line in open(tool_conf_file): - if line.find("") != -1: - onoff = 1 - -# read tool info from every tool xml file -name = [] -id = [] -desc = [] -tool_infos = [] -for tool in tool_list: - if tool.find("section") != -1: - tool_info = dict() - tool_info["id"] = tool - tool_infos.append(tool_info) - if os.path.exists("tools/" + tool): - for line in open("tools/" + tool): - if line.find("